|
| template<typename T > |
| int | mathutil::sgn (T val) |
| |
| static cv::Mat | photon::VideoSimUtil::Get36h11TagImage (int id) |
| |
| static std::unordered_map< int, cv::Mat > | photon::VideoSimUtil::LoadAprilTagImages () |
| |
| static std::vector< cv::Point2f > | photon::VideoSimUtil::GetImageCorners (const cv::Size &size) |
| | Gets the points representing the corners of this image.
|
| |
| static std::vector< cv::Point2f > | photon::VideoSimUtil::Get36h11MarkerPts (int scale) |
| | Gets the points representing the marker(black square) corners.
|
| |
| static std::vector< cv::Point2f > | photon::VideoSimUtil::Get36h11MarkerPts () |
| | Gets the points representing the marker(black square) corners.
|
| |
| static void | photon::VideoSimUtil::UpdateVideoProp (cs::CvSource &video, const SimCameraProperties &prop) |
| | Updates the properties of this cs::CvSource video stream with the given camera properties.
|
| |
| static void | photon::VideoSimUtil::Warp165h5TagImage (int tagId, const std::vector< cv::Point2f > &dstPoints, bool antialiasing, cv::Mat &destination) |
| | Warps the image of a specific 36h11 AprilTag onto the destination image at the given points.
|
| |
| static double | photon::VideoSimUtil::GetScaledThickness (double thickness480p, const cv::Mat &destination) |
| | Given a line thickness in a 640x480 image, try to scale to the given destination image resolution.
|
| |
| static void | photon::VideoSimUtil::DrawInscribedEllipse (const std::vector< cv::Point2f > &dstPoints, const cv::Scalar &color, cv::Mat &destination) |
| | Draw a filled ellipse in the destination image.
|
| |
| static void | photon::VideoSimUtil::DrawPoly (const std::vector< cv::Point2f > &dstPoints, int thickness, const cv::Scalar &color, bool isClosed, cv::Mat &destination) |
| |
| static void | photon::VideoSimUtil::DrawTagDetection (int id, const std::vector< cv::Point2f > &dstPoints, cv::Mat &destination) |
| | Draws a contour around the given points and text of the id onto the destination image.
|
| |
| static std::vector< std::vector< frc::Translation3d > > | photon::VideoSimUtil::GetFieldWallLines () |
| | The translations used to draw the field side walls and driver station walls.
|
| |
| static std::vector< std::vector< frc::Translation3d > > | photon::VideoSimUtil::GetFieldFloorLines (int subdivisions) |
| | The translations used to draw the field floor subdivisions (not the floor outline).
|
| |
| static std::vector< std::vector< cv::Point2f > > | photon::VideoSimUtil::PolyFrom3dLines (const RotTrlTransform3d &camRt, const SimCameraProperties &prop, const std::vector< frc::Translation3d > &trls, double resolution, bool isClosed, cv::Mat &destination) |
| | Convert 3D lines represented by the given series of translations into a polygon(s) in the camera's image.
|
| |
| static void | photon::VideoSimUtil::DrawFieldWireFrame (const RotTrlTransform3d &camRt, const SimCameraProperties &prop, double resolution, double wallThickness, const cv::Scalar &wallColor, int floorSubdivisions, double floorThickness, const cv::Scalar &floorColor, cv::Mat &destination) |
| | Draw a wireframe of the field to the given image.
|
| |