OpenPose 1.0.0rc2 OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
gridPatternFunctions.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_CALIBRATION_GRID_PATTERN_FUNCTIONS_HPP
2 #define OPENPOSE_CALIBRATION_GRID_PATTERN_FUNCTIONS_HPP
3
4 #include <opencv2/opencv.hpp>
5 #include <openpose/core/common.hpp>
6
7 namespace op
8 {
9 enum class Points2DOrigin
10 {
11 TopLeft,
12 TopRight,
13 BottomLeft,
14 BottomRight
15 };
16
17 OP_API std::pair<bool, std::vector<cv::Point2f>> findAccurateGridCorners(
18 const cv::Mat& image, const cv::Size& gridInnerCorners);
19
20 OP_API std::vector<cv::Point3f> getObjects3DVector(
21 const cv::Size& gridInnerCorners, const float gridSquareSizeMm);
22
23 OP_API void drawGridCorners(
24 cv::Mat& image, const cv::Size& gridInnerCorners, const std::vector<cv::Point2f>& points2DVector);
25
26 OP_API std::array<unsigned int, 4> getOutterCornerIndices(
27 const std::vector<cv::Point2f>& points2DVector, const cv::Size& gridInnerCorners);
28
29 OP_API void reorderPoints(std::vector<cv::Point2f>& points2DVector, const cv::Size& gridInnerCorners,
30 const cv::Mat& image, const bool showWarning = true);
31
32 OP_API void plotGridCorners(
33 const cv::Size& gridInnerCorners, const std::vector<cv::Point2f>& points2DVector,
34 const std::string& imagePath, const cv::Mat& image);
35 }
36
37 #endif // OPENPOSE_CALIBRATION_GRID_PATTERN_FUNCTIONS_HPP
op::Points2DOrigin::TopRight
op::CocoJsonFormat::Size
op::Points2DOrigin::BottomRight
op::reorderPoints
OP_API void reorderPoints(std::vector< cv::Point2f > &points2DVector, const cv::Size &gridInnerCorners, const cv::Mat &image, const bool showWarning=true)
op::getObjects3DVector
OP_API std::vector< cv::Point3f > getObjects3DVector(const cv::Size &gridInnerCorners, const float gridSquareSizeMm)
common.hpp
op::Points2DOrigin
Points2DOrigin
Definition: gridPatternFunctions.hpp:9
op::findAccurateGridCorners
OP_API std::pair< bool, std::vector< cv::Point2f > > findAccurateGridCorners(const cv::Mat &image, const cv::Size &gridInnerCorners)
op::drawGridCorners
OP_API void drawGridCorners(cv::Mat &image, const cv::Size &gridInnerCorners, const std::vector< cv::Point2f > &points2DVector)
OP_API
#define OP_API
Definition: macros.hpp:19
op::Points2DOrigin::TopLeft
op::Points2DOrigin::BottomLeft
op::plotGridCorners
OP_API void plotGridCorners(const cv::Size &gridInnerCorners, const std::vector< cv::Point2f > &points2DVector, const std::string &imagePath, const cv::Mat &image)
op::getOutterCornerIndices
OP_API std::array< unsigned int, 4 > getOutterCornerIndices(const std::vector< cv::Point2f > &points2DVector, const cv::Size &gridInnerCorners)
cl::string
std::string string
Definition: cl2.hpp:574