All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
gridPatternFunctions.hpp
Go to the documentation of this file.
#ifndef OPENPOSE_CALIBRATION_GRID_PATTERN_FUNCTIONS_HPP
#define OPENPOSE_CALIBRATION_GRID_PATTERN_FUNCTIONS_HPP
#include <opencv2/opencv.hpp>
#include <openpose/core/common.hpp>
namespace op
{
enum class Points2DOrigin
{
TopLeft,
TopRight,
BottomLeft,
BottomRight
};
OP_API std::pair<bool, std::vector<cv::Point2f>> findAccurateGridCorners(const cv::Mat& image,
const cv::Size& gridInnerCorners);
OP_API std::vector<cv::Point3f> getObjects3DVector(const cv::Size& gridInnerCorners,
const float gridSquareSizeMm);
OP_API void drawGridCorners(cv::Mat& image, const cv::Size& gridInnerCorners,
const std::vector<cv::Point2f>& points2DVector);
OP_API std::array<unsigned int, 4> getOutterCornerIndices(const std::vector<cv::Point2f>& points2DVector,
const cv::Size& gridInnerCorners);
OP_API void reorderPoints(std::vector<cv::Point2f>& points2DVector,
const cv::Size& gridInnerCorners,
const Points2DOrigin points2DOriginDesired);
OP_API void plotGridCorners(const cv::Size& gridInnerCorners,
const std::vector<cv::Point2f>& points2DVector,
const std::string& imagePath,
const cv::Mat& image);
}
#endif // OPENPOSE_CALIBRATION_GRID_PATTERN_FUNCTIONS_HPP
op::Points2DOrigin::TopRight
op::CocoJsonFormat::Size
op::Points2DOrigin::BottomRight
op::getObjects3DVector
OP_API std::vector< cv::Point3f > getObjects3DVector(const cv::Size &gridInnerCorners, const float gridSquareSizeMm)
op::reorderPoints
OP_API void reorderPoints(std::vector< cv::Point2f > &points2DVector, const cv::Size &gridInnerCorners, const Points2DOrigin points2DOriginDesired)
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