Explorar o código

change the manual remove background method to the original one.

gsp hai 1 ano
pai
achega
9312f8eb2b
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      OTSCPP/OTSImagePro/OTSImageProcess.cpp

+ 3 - 3
OTSCPP/OTSImagePro/OTSImageProcess.cpp

@@ -590,7 +590,7 @@ namespace OTSIMGPROC
 		long nBGEnd;
 		long nPartStart;
 		long nPartEnd;
-		//long nNumParticle = 0;
+		long nNumParticle = 0;
 		if (a_pImageProcessParam->GetBGRemoveType() == OTS_BGREMOVE_TYPE::MANUAL)
 		{
 			nBGStart = a_pImageProcessParam->GetBGGray().GetStart();
@@ -601,8 +601,8 @@ namespace OTSIMGPROC
 			
 			
 			
-			CVRemoveBG(srcImgMat, rstMat, nBGStart, nBGEnd);
-			//RemoveBG_old(srcImgMat, rstMat, nBGStart, nBGEnd, nNumParticle);
+			//CVRemoveBG(srcImgMat, rstMat, nBGStart, nBGEnd);
+			RemoveBG_old(srcImgMat, rstMat, nBGStart, nBGEnd, nNumParticle);
 
 			pPixel = rstMat.data;