#pragma once #include #include "jsonconfig.h" #include "commondef.h" static cv::Mat lutGrayMat_old; // 灰色校正值 static cv::Mat lutColorMat_old; // 彩色校正值 cv::Mat extractRepresentRow(const cv::Mat &src); cv::Mat create_lut(const cv::Mat &black, const cv::Mat &white, bool colormode, CISVendor vendor); cv::Mat flipRightHalf(cv::Mat &src, int papertype); void initLut(); cv::Mat GetMergeMat(void *data, int width, int height, int type); cv::Mat GetMergeMat(cv::Mat &mat, int width, int height, int type); cv::Mat GetMergeMat(int dstwidth, int dstheight, int type, cv::Mat &mat, unsigned int fpgaversion = 0x00090001); void correctColor(cv::Mat src, bool enhance); void creatLUTData(int mode, CISVendor vendor); void savescannerinfo(ScannerNativeParam params); ScannerNativeParam getscannerinfo(); void savecisparams(HGCorrectConfigs cfgs); HGCorrectConfigs getcisparams();