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