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

HxIdentMaskStDev.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxValue L_HXIMAGEREP HxIdentMaskStDev (HxImageRep im, HxImageRep mask, HxPoint p, HxSizes size, int label)
 Compute the standard deviation of all pixels in "im" identified by "mask". More...


Detailed Description


Function Documentation

HxValue L_HXIMAGEREP HxIdentMaskStDev HxImageRep    im,
HxImageRep    mask,
HxPoint    p,
HxSizes    size,
int    label
 

Compute the standard deviation 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 :

00014 {
00015     HxBoundingBox bb(size);
00016     bb = bb.translate(p);
00017     HxTagList tags;
00018     HxAddTag(tags, "maskVal", label);
00019     HxAddTag(tags, "boundingBox", bb);
00020     im.exportOpExtra("identMaskStdev", mask, tags);
00021     HxValue v = HxGetTag(tags, "result", HxValue(0));
00022     return v;
00023 }


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