#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxValueList L_HXIMAGEREP | HxImageCentralMoments (HxImageRep im, int order) |
| Compute the central moments of all pixels in "im". More... | |
|
||||||||||||
|
Compute the central moments of all pixels in "im". Implementation specifics: HxIdentMaskCentralMoments is called with the appropriate parameters.
00013 {
00014 HxImageSignature signature(
00015 im.dimensionality(), 1, INT_VALUE, 8);
00016 HxSizes size = im.sizes();
00017 HxImageRep mask = HxMakeFromValue(signature, size, HxValue(1));
00018 HxValueList valList;
00019 HxBoundingBox bb(size);
00020 HxTagList tags;
00021 HxAddTag(tags, "maskVal", 1);
00022 HxAddTag(tags, "boundingBox", bb);
00023 HxAddTag(tags, "order", order);
00024 HxAddTag(tags, "valList", &valList);
00025 im.exportOpExtra("identMaskCentralMoments", mask, tags);
00026 return valList;
00027 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001