Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxPixProduct.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxValue L_HXIMAGEREP HxPixProduct (HxImageRep im)
 Pixel product. More...


Detailed Description


Function Documentation

HxValue L_HXIMAGEREP HxPixProduct HxImageRep    im
 

Pixel product.

The function computes the product (see Pixels) of all pixels in the input image via a reduce operation (see Images).

Implementation specifics : The pixel functor : HxBpoMulAssign. The image functor instantiator : HxInstantiatorMulReduce.

00013 {
00014     HxString fname("HxPixProduct");
00015 
00016     if (im.isNull())
00017     {
00018         HxGlobalError::instance()->reportError(fname, im.name(), "null image", HxGlobalError::HX_GE_INVALID);
00019         return HxValue();
00020     }
00021 
00022     return im.reduceOp("mulAssign");
00023 }


Generated on Tue Feb 3 14:18:50 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001