#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxImageRep L_HXIMAGEREP | HxAtan2 (HxImageRep im) |
Arc tangent (use first and second pixel dimension). More... |
|
Arc tangent (use first and second pixel dimension). The function computes the arc tangent (see Pixels) of all pixels in the input image via a unary pixel operation (see Images). Implementation specifics : The pixel functor : HxUpoAtan2. The image functor instantiator : HxInstantiatorAtan2.
00015 { 00016 HxString fname("HxAtan2"); 00017 00018 if (im.isNull()) 00019 { 00020 HxGlobalError::instance()->reportError(fname, im.name(), "null image", HxGlobalError::HX_GE_INVALID); 00021 return HxImageRep(); 00022 } 00023 00024 if (im.signature().pixelDimensionality() != 2) 00025 { 00026 HxGlobalError::instance()->reportError(fname, "atan2 is only defined on two dimensional pixel values", HxGlobalError::HX_GE_INVALID); 00027 return HxImageRep(); 00028 } 00029 00030 return im.unaryPixOp("atan2"); 00031 } |