Go to the source code of this file.
Functions | |
void | HxSegmentationMoments (HxSegmentation2d *seg, int order) |
Compute the moments of each blob in an HxSegmentation2d. More... |
|
Compute the moments of each blob in an HxSegmentation2d. The result is stored as feature "Moments" in a blob.
00017 { 00018 for (HxBlob2dListConstIter b=seg->getBlobBegin() ; b<seg->getBlobEnd() ; b++) { 00019 HxBlob2d* blob = (*b); 00020 HxValueList vl = HxIdentMaskMoments(seg->getInputImage(), 00021 seg->getLabeledImage(), 00022 blob->startMaer(), blob->sizeMaer(), 00023 blob->getLabel(), order); 00024 blob->addFeature("Moments", vl); 00025 } 00026 } |