#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxValue L_HXIMAGEREP | HxImageVariance (HxImageRep im) |
Compute the variance of all pixels in "im". More... |
|
Compute the variance of all pixels in "im". Implementation specifics: HxIdentMaskVariance 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 HxBoundingBox bb(size); 00019 HxTagList tags; 00020 HxAddTag(tags, "maskVal", 1); 00021 HxAddTag(tags, "boundingBox", bb); 00022 HxAddTag(tags, "exportVariance",true); 00023 im.exportOpExtra("identMaskStdev", mask, tags); 00024 HxValue v = HxGetTag(tags, "result", HxValue(0)); 00025 return v; 00026 } |