#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxValueList L_HXIMAGEREP | HxImageMoments (HxImageRep im, int order) |
Compute the moments of all pixels in "im". More... |
|
Compute the moments of all pixels in "im". Implementation specifics: HxIdentMaskMoments 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("identMaskMoments", mask, tags); 00026 return valList; 00027 } |