7010 屏蔽图像处理部分以及查值表保存图像代码

This commit is contained in:
13038267101 2023-10-27 20:40:38 +08:00
parent 12ae6591b9
commit 88ac5e7839
1 changed files with 2 additions and 2 deletions

View File

@ -523,7 +523,7 @@ namespace hg_imgproc
float vratio = 0.0; float vratio = 0.0;
float hratio = 0.0; float hratio = 0.0;
cv::imwrite("C:\\image\\imdecode" + std::to_string(img_idx++) + ".jpg", mat); //cv::imwrite("C:\\image\\imdecode" + std::to_string(img_idx++) + ".jpg", mat);
int dpi = param_.dpi == 600 ? 3 : (param_.dpi < 599 && param_.dpi >= 300) ? 2 : 1; int dpi = param_.dpi == 600 ? 3 : (param_.dpi < 599 && param_.dpi >= 300) ? 2 : 1;
int mode = param_.color_mode == COLOR_MODE_24_BITS ? 1 : 0; int mode = param_.color_mode == COLOR_MODE_24_BITS ? 1 : 0;
for (auto it : correction_image_map_) for (auto it : correction_image_map_)
@ -1844,7 +1844,7 @@ namespace hg_imgproc
memcpy(lutROI.data, tran.data, tran.total()); memcpy(lutROI.data, tran.data, tran.total());
} }
cv::imwrite("C:\\image\\" + std::to_string(lut_idx++) + ".bmp", lut); //cv::imwrite("C:\\image\\" + std::to_string(lut_idx++) + ".bmp", lut);
return lut; return lut;
} }