|
|
@@ -817,7 +817,7 @@ namespace OTSIncAMeasureApp
|
|
|
//获取样品名称
|
|
|
SampleMeasureArea.sNewSampleName = (m_ProjDataMgr.GetSampleList())[i].GetName();
|
|
|
// 获取测量区域形状
|
|
|
- SampleMeasureArea.iShape = Convert.ToInt32((m_ProjDataMgr.GetSampleList())[i].GetMsrArea().GetShape());
|
|
|
+ SampleMeasureArea.iShape = Convert.ToInt32((m_ProjDataMgr.GetSampleList())[i].GetMsrArea());
|
|
|
//获取样品孔名称
|
|
|
SampleMeasureArea.sHoleName = (m_ProjDataMgr.GetSampleList())[i].GetSampleHoleName();
|
|
|
//样品测量区域
|
|
|
@@ -1059,24 +1059,24 @@ namespace OTSIncAMeasureApp
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- CDomain pMsrArea = new CDomain();
|
|
|
+ Rectangle pMsrArea = new Rectangle();
|
|
|
pMsrArea = WSample.GetMsrArea();
|
|
|
if (null == pMsrArea)
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- iShape = Convert.ToInt32(pMsrArea.GetShape());
|
|
|
+ iShape = Convert.ToInt32(pMsrArea);
|
|
|
|
|
|
- ValueType ValType = new Rectangle();
|
|
|
- ValType = pMsrArea.GetRectDomain();
|
|
|
+ Rectangle ValType = new Rectangle();
|
|
|
+ ValType = pMsrArea;
|
|
|
Srect = (Rectangle)ValType;
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//获取幁图数
|
|
|
//ref List<Point> pField: 幁图数
|
|
|
- public bool GetField(ref List<System.Windows.Point> pField, ref Size iSzie)
|
|
|
+ public bool GetField(ref List<System.Windows.Point> pField, ref System.Windows.Size iSzie)
|
|
|
{
|
|
|
COTSSample WSample = m_ProjDataMgr.GetWorkingSample();
|
|
|
if (null == WSample)
|
|
|
@@ -1084,7 +1084,7 @@ namespace OTSIncAMeasureApp
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- CDomain pMsrArea = new CDomain();
|
|
|
+ Rectangle pMsrArea = new Rectangle();
|
|
|
pMsrArea = WSample.GetMsrArea();
|
|
|
|
|
|
|
|
|
@@ -1221,13 +1221,20 @@ namespace OTSIncAMeasureApp
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- COTSImgProcPrm ImgProcPrm = WSample.GetMsrParams().GetImageProcessParam();
|
|
|
+ COTSImageProcessParam ImgProcPrm = WSample.GetMsrParams().GetImageProcessParam();
|
|
|
|
|
|
- if (!m_ProjDataMgr.RemoveBackGround(pBSEImageIn, ImgProcPrm, ref pBSEImageOut))
|
|
|
+ if (!m_ProjDataMgr.RemoveBackGround(pBSEImageIn, ImgProcPrm, pBSEImageOut))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+ if (pBSEImageOut.GetImageDataPtr() == true)
|
|
|
+ {
|
|
|
+ BSEImageNoBG = 0x01;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ BSEImageNoBG = 0x00;
|
|
|
+ }
|
|
|
BSEImageNoBG = pBSEImageOut.GetImageDataPtr();
|
|
|
|
|
|
return true;
|