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

HxIdentMaskMoments.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxValueList L_HXIMAGEREP HxIdentMaskMoments (HxImageRep im, HxImageRep mask, HxPoint p, HxSizes size, int label, int order)
 Compute the moments of all pixels in "im" identified by "mask". More...


Detailed Description


Function Documentation

HxValueList L_HXIMAGEREP HxIdentMaskMoments HxImageRep    im,
HxImageRep    mask,
HxPoint    p,
HxSizes    size,
int    label,
int    order
 

Compute the moments of all pixels in "im" identified by "mask".

"mask" is assumed to be an identification image with pixel type short. The function considers all pixels within the area starting at point "p" with given "size" and a value equal to label.

Implementation specifics :

00015 {
00016     HxValueList valList;
00017     HxBoundingBox bb(size);
00018     bb = bb.translate(p);
00019     HxTagList tags;
00020     HxAddTag(tags, "maskVal", label);
00021     HxAddTag(tags, "boundingBox", bb);
00022     HxAddTag(tags, "order", order);
00023     HxAddTag(tags, "valList", &valList);
00024     im.exportOpExtra("identMaskMoments", mask, tags);
00025     return valList;
00026 }


Generated on Mon Jan 27 15:48:53 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001