Procházet zdrojové kódy

Fix the bug to obtain a background image without any graininess

cxs před 1 měsícem
rodič
revize
b8f35b9cf4

+ 7 - 3
OTSIncAMeasureApp/ServiceCenter/CImageHandler.cs

@@ -179,12 +179,15 @@ namespace OTSModelSharp.ServiceCenter
                 }
 
             }
-
-
             BSEImageNoBG = pBSEImageOut.GetImageDataPtr();
 
             return true;
         }
+
+
+
+
+
         public bool GetColoredImage(COTSField tempFld, COTSImageProcParam ImgProcPrm, double pixelSize, int iWidth, int iHeight, ref CBSEImgClr a_pImgOut, ref Bitmap BSEImageNoBG)
         {
 
@@ -213,9 +216,10 @@ namespace OTSModelSharp.ServiceCenter
             {
                 return;
             }
+            tempFld.SetListAnalysisParticles(parts);
             tempFld.CalParticleImageProp(parts);
             tempFld.SelectParticlesAccordingImgProp(a_pImgProcessParam);
-            parts = tempFld.GetListAnalysisParticles();
+            //parts = tempFld.GetListAnalysisParticles();
             if (a_pImgProcessParam.GetSpecialGreyRangeParam().GetIsToRun())
             {
                 var param = a_pImgProcessParam.GetSpecialGreyRangeParam();