Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxSegmentationCentralMoments.h File Reference

More...

Go to the source code of this file.

Functions

void HxSegmentationCentralMoments (HxSegmentation2d *seg, int order)
 Compute the central moments of each blob in an HxSegmentation2d. More...


Detailed Description


Function Documentation

void HxSegmentationCentralMoments HxSegmentation2d   seg,
int    order
 

Compute the central moments of each blob in an HxSegmentation2d.

The result is stored as feature "CentralMoments" in a blob.

00017 {
00018     for (HxBlob2dListConstIter b=seg->getBlobBegin() ; b<seg->getBlobEnd() ; b++) {
00019         HxBlob2d* blob = (*b);
00020         HxValueList vl = HxIdentMaskCentralMoments(seg->getInputImage(),
00021                                                    seg->getLabeledImage(),
00022                                                    blob->startMaer(),
00023                                                    blob->sizeMaer(),
00024                                                    blob->getLabel(),
00025                                                    order);
00026         blob->addFeature("CentralMoments", vl);
00027     }
00028 }


Generated on Tue Feb 3 14:18:50 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001