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

HxWeightMaskSum.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxValue L_HXIMAGEREP HxWeightMaskSum (HxImageRep im, HxImageRep mask, HxPoint p)
 Compute the sum of all pixels in "im" weighed by "mask". More...


Detailed Description


Function Documentation

HxValue L_HXIMAGEREP HxWeightMaskSum HxImageRep    im,
HxImageRep    mask,
HxPoint    p
 

Compute the sum of all pixels in "im" weighed by "mask".

The function considers all pixels within the area starting at point "p" with a size equal to that of "mask".

Implementation specifics :

00013 {
00014     HxBoundingBox bb(mask.sizes());
00015     HxTagList tags;
00016     HxAddTag(tags, "boundingBox", bb);
00017     HxAddTag(tags, "doOffsetExtra", false);
00018     im.exportOpExtra("weightMaskSum", mask, tags);
00019     HxValue v = HxGetTag<HxValue>(tags, "result");
00020     return v;
00021 }


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