选择Blobs (Evision)

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);
}
上一篇:VS工程目标文件名设置


下一篇:PyQt:个性化登录界面模仿QQ登录