|
@@ -186,7 +186,9 @@ namespace OTSIMGPROC
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (eigenPixelNum > 5)
|
|
|
+ double r = m_imageProcessParam->GetIncArea().GetStart() / 2;
|
|
|
+ double minPartArea = 3.14159 * r * r;
|
|
|
+ if (eigenPixelNum* a_pixelSize*a_pixelSize > minPartArea)
|
|
|
{
|
|
|
BYTE nAveGray = (BYTE)(nPixelAll / nPixelNum);
|
|
|
pParticle->SetAveGray(nAveGray);
|