#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxValue L_HXIMAGEREP | HxPixMin (HxImageRep im) |
| Pixel minimum. More... | |
|
|
Pixel minimum. The function computes the minimum (see Pixels) of all pixels in the input image via a reduce operation (see Images). Implementation specifics : The pixel functor : HxBpoMinAssign. The image functor instantiator : HxInstantiatorMinReduce.
00013 {
00014 HxString fname("HxPixMin");
00015
00016 if (im.isNull())
00017 {
00018 HxGlobalError::instance()->reportError(fname, im.name(), "null image", HxGlobalError::HX_GE_INVALID);
00019 return HxValue();
00020 }
00021 if (im.pixelDimensionality() != 1)
00022 {
00023 HxGlobalError::instance()->reportError(fname, im.name(), "Operation only valid on scalar images", HxGlobalError::HX_GE_INVALID);
00024 return HxValue();
00025 }
00026
00027 return im.reduceOp("minAssign");
00028 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001