#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... | |
|
||||||||||||||||
|
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 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001