浏览代码

in inca system, when removing bse background ,display the colored particle image by default.
in cleanness system ,check the libname before classify particles.

gsp 7 月之前
父节点
当前提交
3b82155453

二进制
Bin/x64/Debug/Config/SysData/StdBattery.db


+ 5 - 1
OTSIncAMeasureApp/1-OTSMeasure/Measure/2-OTSCleanliness/SmplMeasureCleanliness.cs

@@ -54,7 +54,11 @@ namespace OTSModelSharp
         public bool ClassifyParticles(List<COTSParticleClr> a_listAnalysisParticles, string libname)// classify particles
         {
 
-
+            if(libname == "NoSTDDB")
+            {
+                log.Error("No STDDB, can not classify particles");
+                return false;
+            }
             int nSize = (int)a_listAnalysisParticles.Count();
 
             // go through all analysis particles

+ 12 - 17
OTSIncAMeasureApp/5-OTSMeasureStatuImageFun/OTSMeasureStatusWindow.cs

@@ -40,7 +40,7 @@ namespace OTSMeasureApp
         //单点采集Xray与元素信息
         PointScanElementMenuItem = 9,
 
-        BatchCollectXray=10,
+        BatchCollectXray = 10,
         //导出采集信息报告
         ExportReport = 11
     }
@@ -1024,8 +1024,8 @@ namespace OTSMeasureApp
                 double bri = 0;
                 double contra = 0;
                 double kv = 0;
-                m_MeasureAppForm.m_ProjParam.GetWorkingSampleSEMData(ref iWDistance, ref dMagni,ref bri,ref contra,ref kv);
-                if (iWDistance != 0 && dMagni != 0 && bri!=0 && contra!=0)
+                m_MeasureAppForm.m_ProjParam.GetWorkingSampleSEMData(ref iWDistance, ref dMagni, ref bri, ref contra, ref kv);
+                if (iWDistance != 0 && dMagni != 0 && bri != 0 && contra != 0)
                 {
                     contextMenuStrip1.Items[(int)MeasureStateMenuType.ReadBSEPic].Enabled = true;
                 }
@@ -1099,7 +1099,7 @@ namespace OTSMeasureApp
                 var mode = m_MeasureAppForm.m_ProjRstData.GetWorkingSample().GetMsrParams().GetXRayParam().GetScanMode();
                 GetSelectedParticle((int)mousepos.X, (int)mousepos.Y, ref selpart);
 
-               
+
 
                 if (selpart == null)
                 {
@@ -1244,7 +1244,7 @@ namespace OTSMeasureApp
             }
 
             ClassifyParticles(selectedParts);
-            
+
             return true;
 
         }
@@ -1591,14 +1591,9 @@ namespace OTSMeasureApp
                 m_MeasureAppForm.UpdatePropertyVal();
                 //确认后进行去背景
                 var m_systype = m_MeasureAppForm.m_ProjParam.GetResultData().SystemTypeId;
-                if (m_systype != otsdataconst.OTS_SysType_ID.IncA)
-                {
-                    ShowColoredRemoveBGImage();
-                }
-                else
-                {
-                    ShowRemoveBGImage();
-                }
+
+                ShowColoredRemoveBGImage();
+
 
             }
         }
@@ -1741,7 +1736,7 @@ namespace OTSMeasureApp
                 }
 
 
-               
+
                 //3.根据所要扫描的位置进行元素分析
                 uint a_Milliseconds = 0;
                 //采集时间
@@ -1749,12 +1744,12 @@ namespace OTSMeasureApp
 
 
                 var parts = myFld.GetListAnalysisParticles();
-               
-                    GetXRayAndElements(a_Milliseconds, parts, mode);
+
+                GetXRayAndElements(a_Milliseconds, parts, mode);
+
 
 
 
-                
                 var colorImg = myFld.GetAnalysisParticleSTDColoredImage();
                 pictureBox2.Image = colorImg;
                 ExportScanInfoMenuItem.Enabled = true;