Sfoglia il codice sorgente

修改费雷特直径筛选条数

CXS 3 anni fa
parent
commit
1e1635a6c7
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      OTSCPP/OTSImagePro/OTSImageProcess.cpp

+ 3 - 3
OTSCPP/OTSImagePro/OTSImageProcess.cpp

@@ -90,9 +90,9 @@ namespace OTSIMGPROC
 			double sumFltDiameter = 0;
 			int interval;
 			int edgePointNum = listEdge.size();
-			if (edgePointNum > 100)
+			if (edgePointNum > 10)
 			{
-				interval = edgePointNum / 100;//get one line per 10 degree  aproxemately 
+				interval = edgePointNum / 10;//get one line per 10 degree  aproxemately 
 			}
 			else
 			{
@@ -1780,7 +1780,7 @@ namespace OTSIMGPROC
 			return true;
 		}
 		int imaxcontour = 0, imax = 0;
-		for (unsigned int i = 0; i < contours.size(); i++) {
+		for (unsigned int i = 0; i < contours.size(); i++) {                  
 
 			int itmp = contourArea(contours[i]);