306 摩尔纹调整

This commit is contained in:
13038267101 2023-11-01 10:45:19 +08:00
parent 3af53b5dae
commit 0b439c26e3
2 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -564,7 +564,7 @@ namespace hg_imgproc
hratio = (200.0 / 300.0) * hratio; hratio = (200.0 / 300.0) * hratio;
if (img_conf_.removeMorr && dpi != 3) if (img_conf_.removeMorr && dpi != 3)
vratio = dpi == 1 ? vratio * 0.5186 : vratio * 0.7787; vratio = dpi == 1 ? vratio * 0.5 : vratio * 0.75; //0.5 = 200/400 0.75= 300/400
if (img_conf_.removeMorr) if (img_conf_.removeMorr)
resize(mat, mat, cv::Size(0, 0), hratio, vratio, cv::InterpolationFlags::INTER_AREA); resize(mat, mat, cv::Size(0, 0), hratio, vratio, cv::InterpolationFlags::INTER_AREA);