#ifndef IMAGE_PROCESS_PUBLIC_H #define IMAGE_PROCESS_PUBLIC_H #include "opencv2/opencv.hpp" #include namespace hg { void convexHull(const std::vector& src, std::vector& dst, bool clockwise = false); void fillConvexHull(cv::Mat& image, const std::vector& points); void fillPolys(cv::Mat& image, const std::vector>& contours, const cv::Scalar& color); void findContours(const cv::Mat& src, std::vector>& contours, std::vector& hierarchy, int retr = cv::RETR_LIST, int method = cv::CHAIN_APPROX_SIMPLE, cv::Point offset = cv::Point(0, 0)); cv::RotatedRect getBoundingRect(const std::vector& contour); std::vector getMaxContour(const std::vector>& contours, const std::vector& hierarchy); std::vector getVertices(const cv::RotatedRect& rect); void polyIndent(std::vector& points, const cv::Point& center, int indent); void threshold_Mat(const cv::Mat& src, cv::Mat& dst, double thre); cv::Mat transforColor(const cv::Mat& src); cv::Point warpPoint(cv::Point p, const cv::Mat& warp_mat); } #endif // !IMAGE_PROCESS_C_H