Browse Source

change medianBlur parameter to 5

gsp 7 tháng trước cách đây
mục cha
commit
0ce627e1ba
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      OTSCPP/OTSImagePro/BaseFunction.cpp

+ 1 - 1
OTSCPP/OTSImagePro/BaseFunction.cpp

@@ -164,7 +164,7 @@ void BlurImage(CBSEImgPtr inImg)
 	BYTE* pPixel = inImg->GetImageDataPointer();
 	Mat cvcopyImg = Mat(rows, cols, CV_8UC1, pPixel);
 	//Mat blurImg;
-	medianBlur(cvcopyImg, cvcopyImg, 11);//get rid of the noise point.
+	medianBlur(cvcopyImg, cvcopyImg, 5);//get rid of the noise point.
 	//cv::bilateralFilter
 	//cv::GaussianBlur(cvcopyImg, cvcopyImg, Size(5, 5), 2);
 	//inImg->SetImageData(cvcopyImg.data, width, height);