|
@@ -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;
|
|
|
|