|
@@ -154,10 +154,8 @@ namespace OTSModelSharp
|
|
|
pParticle.SetArea(dPartArea);
|
|
|
// get average gray level
|
|
|
int nAveGrayLevel = pParticle.GetAveGray();
|
|
|
- // set particle tag id
|
|
|
- pParticle.SetTagId(nTagId++);
|
|
|
- // set field id
|
|
|
- pParticle.SetFieldId(GetId());
|
|
|
+
|
|
|
+
|
|
|
// oversize particles
|
|
|
if (dPartArea > (double)dAreaHigh)
|
|
|
{
|
|
@@ -172,12 +170,17 @@ namespace OTSModelSharp
|
|
|
tooSmallnum += 1;
|
|
|
continue;
|
|
|
}
|
|
|
+ // set particle tag id
|
|
|
+ pParticle.SetTagId(nTagId++);
|
|
|
+ // set field id
|
|
|
+ pParticle.SetFieldId(GetId());
|
|
|
// add the particle into the output particles list
|
|
|
pParticle.SetType((int)otsdataconst.OTS_PARTCLE_TYPE.NO_ANALYSIS_X_RAY);
|
|
|
pParticle.SetTypeName("Not Identified");
|
|
|
- pParticle.SetAnalysisId(nAnalysisPartId);
|
|
|
+
|
|
|
+ pParticle.SetAnalysisId(nAnalysisPartId++);
|
|
|
m_listAnalysisParticles.Add(pParticle);
|
|
|
- ++nAnalysisPartId;
|
|
|
+
|
|
|
}
|
|
|
logger.Info("TooSmall Particles (<"+ dAreaLow .ToString("f2") + "): " + tooSmallnum);
|
|
|
logger.Info("OverSize Particles (>"+ dAreaHigh.ToString("f2") + "): " + overSizenum);
|
|
@@ -256,7 +259,7 @@ namespace OTSModelSharp
|
|
|
|
|
|
return m_nID == a_oSource.m_nID &&
|
|
|
PoiPos == a_oSource.PoiPos;
|
|
|
- //m_strFieldFileFolder==a_oSource.m_strFieldFileFolder;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
// destructor
|