|
@@ -78,14 +78,9 @@ namespace OTSIMGPROC {
|
|
|
{
|
|
|
for (int j = 0; j < col; j++)
|
|
|
{
|
|
|
- /*if (i % 2 == 0)
|
|
|
- {*/
|
|
|
+
|
|
|
arrays[i][j] = col *(row- i) + j+1;
|
|
|
- /*}
|
|
|
- else
|
|
|
- {
|
|
|
- arrays[i][j] = col * i+(col- j);
|
|
|
- }*/
|
|
|
+
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -178,9 +173,6 @@ namespace OTSIMGPROC {
|
|
|
return FALSE;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- // check member parameters
|
|
|
- //ASSERT(m_pMeasureArea && m_poImageScanParam && m_poSEMDataMsr);
|
|
|
if (!m_pMeasureArea || m_ScanFieldSize==0)
|
|
|
{
|
|
|
// shouldn't happen
|
|
@@ -282,6 +274,12 @@ namespace OTSIMGPROC {
|
|
|
return nTotalFields;
|
|
|
}
|
|
|
|
|
|
+ std::vector<CPoint> CFieldMgr::GetFieldCentrePoints()
|
|
|
+ {
|
|
|
+ auto m_listFieldCentrePoints = CalculateFieldCentrePoints1();
|
|
|
+ return m_listFieldCentrePoints;
|
|
|
+ }
|
|
|
+
|
|
|
// field centre points list
|
|
|
BOOL CFieldMgr::GetFieldRectByIndex(int a_nIndex, CRect& a_rectField)
|
|
|
{
|
|
@@ -309,6 +307,12 @@ namespace OTSIMGPROC {
|
|
|
return TRUE;
|
|
|
}
|
|
|
|
|
|
+ int CFieldMgr::GetTotalFields()
|
|
|
+ {
|
|
|
+ auto m_listFieldCentrePoints = CalculateFieldCentrePoints1();
|
|
|
+ return (int)m_listFieldCentrePoints.size();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
|