选择Blobs (Evision)

时间:2022-02-27 23:06:15
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= ; Count < Blobs.GetNumSelectedObjects(); Count++)
{ // Retrieve object area
Blobs.GetObjectFeature(OBJ_AREA, pObject, n32Area); // Process object area
... // Next object
pObject= Blobs.GetNextObjPtr(pObject);
}