C++

// Sort by decreasing area
Blobs.SortObjectsUsingFeature(OBJ_AREA, OBJ_SORT_DESCENDING);

// Enumerate objects, using a list pointer
EListItem* pObject;

// Start at the beginning of the list
pObject= Blobs.GetFirstObjPtr();

// Loop on the selected objects
for (Count= 0; Count < Blobs.GetNumSelectedObjects(); Count++)
{ // Retrieve object area
Blobs.GetObjectFeature(OBJ_AREA, pObject, n32Area);

// Process object area
...

// Next object
pObject= Blobs.GetNextObjPtr(pObject);
}

 

相关文章:

  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-02-18
猜你喜欢
  • 2021-06-21
  • 2021-08-07
  • 2021-09-21
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案