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

HxArg.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxArg (HxImageRep im)
 Argument. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxArg HxImageRep    im
 

Argument.

The function computes the complex argument (see Pixels) of all pixels in the input image via a unary pixel operation (see Images).

Implementation specifics : The pixel functor : HxUpoArg. The image functor instantiator : HxInstantiatorArg.

00013 {
00014     HxString fname("HxArg");
00015 
00016     if (im.isNull())
00017     {
00018         HxGlobalError::instance()->reportError(fname, im.name(), "null image", HxGlobalError::HX_GE_INVALID);
00019         return HxImageRep();
00020     }
00021 
00022     if (im.signature().pixelType() != COMPLEX_VALUE)
00023     {
00024         HxGlobalError::instance()->reportError(fname, "Operation is only valid on complex images", HxGlobalError::HX_GE_INVALID);
00025         return HxImageRep();
00026     }
00027 
00028     return im.unaryPixOp("arg");
00029 }


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