|
|
@@ -20,7 +20,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
/// <summary>
|
|
|
/// fei面扫这个参数作用是达到这个数值后采集xray操作停止,而ots期望计数率是lowcount的判断标准,两者概念不同,所以此处用常数5000而非ots期望计数率
|
|
|
/// </summary>
|
|
|
- const int maxCounts = 8000;
|
|
|
+ const int const_maxCounts = 8000;
|
|
|
|
|
|
public FEIEDSController(int MaxCounts,bool ifautoid,string knownelements)
|
|
|
{
|
|
|
@@ -39,7 +39,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
{
|
|
|
List<Point> points = CImageHandler.FindContoursBySegment(width, height, a_listParticles[i].GetFeature().GetSegmentsList());
|
|
|
|
|
|
- if (!ApiClass.GetXRayByPolygon(points, strResolution, a_nXRayAQTime, maxCounts, a_bElementInfo, ref eleItems, ref spectrumItems))
|
|
|
+ if (!ApiClass.GetXRayByPolygon(points, strResolution, a_nXRayAQTime, const_maxCounts, a_bElementInfo, ref eleItems, ref spectrumItems))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
@@ -47,11 +47,12 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
else
|
|
|
{
|
|
|
Rectangle rectangle = (Rectangle)a_listParticles[i].GetParticleRect();
|
|
|
- if (!ApiClass.GetXRayByRect(rectangle, strResolution, a_nXRayAQTime, maxCounts, a_bElementInfo, ref eleItems, ref spectrumItems))
|
|
|
+ if (!ApiClass.GetXRayByRect(rectangle, strResolution, a_nXRayAQTime, const_maxCounts, a_bElementInfo, ref eleItems, ref spectrumItems))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
var xray = a_listParticles[i].GetXray();
|
|
|
xray.SetXrayData(spectrumItems);
|
|
|
a_listParticles[i].SetXray(xray);
|
|
|
@@ -78,7 +79,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
Point point = (Point)a_listParticles[i].GetXRayPos();
|
|
|
Dictionary<string, double> eleItems = new Dictionary<string, double>();
|
|
|
uint[] spectrumItems = new uint[2000];
|
|
|
- if (!ApiClass.GetXRayByPoint(point.X, point.Y, strResolution, a_nXRayAQTime, AnalyExpCount, a_bElementInfo, ref eleItems, ref spectrumItems))
|
|
|
+ if (!ApiClass.GetXRayByPoint(point.X, point.Y, strResolution, a_nXRayAQTime, const_maxCounts, a_bElementInfo, ref eleItems, ref spectrumItems))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
@@ -157,6 +158,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
width = ResolutionWidth;
|
|
|
height = ResolutionHeight;
|
|
|
strResolution = ResolutionWidth.ToString() + "x" + ResolutionHeight.ToString();
|
|
|
+ //strResolution = "6144x4096";
|
|
|
}
|
|
|
|
|
|
public bool QuantifyXrayByPart(COTSParticleClr part)
|