#ifndef CORRECT_PROCESS_H #define CORRECT_PROCESS_H #include //uchar m_byteArray[78336 * 26]; //int m_index[] = { 0, 4896 * 26 * 3, 4896 * 26 * 4, 4896 * 26 * 7, 4896 * 26 * 8, (78336 - 9796 * 4) * 26, (78336 - 9796) * 26 }; /// /// 校正处理。灰阶校正+色偏校正。 /// /// 灰阶校正原图 /// 黑色等级 /// 色偏校正使能。true为进行色偏校正;false为禁止 /// 色偏校正参考数据 /// 校正数据关键点文件保存路径 /// [0]为灰阶校正数据;[1]为正面色偏校正数据;[2]为反面校正数据 std::vector correctProcess(cv::Mat& image, int blackLevel, bool colorCastEnable, const std::vector& referValues, int dpi, const std::string& path); /// /// 校正处理。灰阶校正+色偏校正。 /// /// 灰阶校正原图(正) /// 灰阶校正原图(反) /// 黑色等级 /// 色偏校正使能。true为进行色偏校正;false为禁止 /// 色偏校正参考数据 /// 校正数据关键点文件保存路径 /// [0]为灰阶校正数据;[1]为正面色偏校正数据;[2]为反面校正数据 std::vector correctProcess(cv::Mat& image1, cv::Mat& image2, int blackLevel, bool colorCastEnable, const std::vector& referValues, int dpi, const std::string& path); void correctLUT(cv::Mat& image, const cv::Mat& lut); cv::Mat readZipCorrect(uchar* data, int len, int blackLevel); #endif