#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxValue L_HXIMAGEREP | HxImageMedian (HxImageRep im) |
| Compute the median of all pixels in "im". More... | |
|
|
Compute the median of all pixels in "im". Implementation specifics: HxIdentMaskMedian 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 im.exportOpExtra("identMaskMedian", mask, tags);
00023 HxValue v = HxGetTag(tags, "result", HxValue(0));
00024 return v;
00025 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001