Download include/openpose_private/calibration/gridPatternFunctions.hpp from JusJ7/openpose: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/JusJ7/openpose/resolve/main/include/openpose_private/calibration/gridPatternFunctions.hpp
- Command line
-
hf download hf://JusJ7/openpose/include/openpose_private/calibration/gridPatternFunctions.hpp
-
curl -L -o gridPatternFunctions.hpp https://huggingface.co/JusJ7/openpose/resolve/main/include/openpose_private/calibration/gridPatternFunctions.hpp
1.29 kB
| namespace op | |
| { | |
| enum class Points2DOrigin | |
| { | |
| TopLeft, | |
| TopRight, | |
| BottomLeft, | |
| BottomRight | |
| }; | |
| std::pair<bool, std::vector<cv::Point2f>> findAccurateGridCorners( | |
| const cv::Mat& image, const cv::Size& gridInnerCorners); | |
| std::vector<cv::Point3f> getObjects3DVector( | |
| const cv::Size& gridInnerCorners, const float gridSquareSizeMm); | |
| void drawGridCorners( | |
| cv::Mat& image, const cv::Size& gridInnerCorners, const std::vector<cv::Point2f>& points2DVector); | |
| std::array<unsigned int, 4> getOutterCornerIndices( | |
| const std::vector<cv::Point2f>& points2DVector, const cv::Size& gridInnerCorners); | |
| void reorderPoints( | |
| std::vector<cv::Point2f>& points2DVector, const cv::Size& gridInnerCorners, | |
| const cv::Mat& image, const bool showWarning = true); | |
| void plotGridCorners( | |
| const cv::Size& gridInnerCorners, const std::vector<cv::Point2f>& points2DVector, | |
| const std::string& imagePath, const cv::Mat& image); | |
| } | |