/* * ==================================================== * ���ܣ�UVͼ��ԭͼ�ϲ�������ԭͼ��ƫ���ü��Լ���ת�����UV����ԭͼ�Ĵ�����������ԭͼƴ��Ϊһ��ͼ�� �ù�������UVһ����С� * ���ߣ�����ά * ����ʱ�䣺2020/7/20 * ����޸�ʱ�䣺2020/7/20 * �汾�ţ�v1.0 2020/7/20 * ==================================================== */ #ifndef IMAGE_APPLY_UV_MERGE_H #define IMAGE_APPLY_UV_MERGE_H #include "ImageApply.h" #include class GIMGPROC_LIBRARY_API CImageApplyUVMerge { public: CImageApplyUVMerge(); ~CImageApplyUVMerge(); void Apply(cv::Mat& image, const cv::Mat& uv, int dpi = 200, int thresh = 100); static cv::Mat Apply(const cv::Mat& image, const cv::Mat& uv, const cv::RotatedRect& uvRoi, bool isDesaskew, int angle); private: void purgeQR_kernal(cv::Mat& image, const cv::Rect& roi, std::map map_color, int dpi, int threshold); cv::Scalar getColor(const cv::Mat& image, int col, int threshold); void update_lutData(int contrast); cv::Mat lut; }; #endif // !IMAGE_APPLY_UV_MERGE_H