Skip to content

exp_imageExpImageExpImageexp_imageexp_image🔗

Short description🔗

exp_imageExpImageExpImageexp_imageexp_image — Calculate the exponentiation of an image.

Signature🔗

exp_image( image Image, out image ExpImage, number Base )void ExpImage( const HObject& Image, HObject* ExpImage, const HTuple& Base )static void HOperatorSet.ExpImage( HObject image, out HObject expImage, HTuple baseVal )def exp_image( image: HObject, base: Union[int, float, str] ) -> HObject

Herror exp_image( const Hobject Image, Hobject* ExpImage, const char* Base )

Herror T_exp_image( const Hobject Image, Hobject* ExpImage, const Htuple Base )

HImage HImage::ExpImage( const HTuple& Base ) const

HImage HImage::ExpImage( const HString& Base ) const

HImage HImage::ExpImage( const char* Base ) const

HImage HImage::ExpImage( const wchar_t* Base ) const (Windows only)

HImage HImage.ExpImage( HTuple baseVal )

HImage HImage.ExpImage( string baseVal )

Description🔗

exp_imageExpImage calculates the exponentiation to the base BasebaseValbase of an input image Imageimageimage and stores the result in the image ExpImageexpImageexp_image. If Imageimageimage contains gray values that would overflow the range of ExpImageexpImageexp_image, e.g., \(> 88.722839\) for \(\textrm{Base} = '\textit{e}'\), the corresponding gray values in ExpImageexpImageexp_image are set to the largest value representable in ExpImageexpImageexp_image (i.e., \(3.4028235 \times 10^{38}\)).

Attention🔗

exp_imageExpImage can be executed on an OpenCL device for byte, int1, int2, uint2, int4, and real images. Note that the results of the OpenCL code may vary from the results produced by the CPU.

Execution information🔗

Execution information
  • Supports OpenCL compute devices.

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on tuple level.

  • Automatically parallelized on channel level.

  • Automatically parallelized on domain level.

Parameters🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte* / int1* / uint2* / int2* / int4* / int8 / real*)HObject (byte* / int1* / uint2* / int2* / int4* / int8 / real*)HImage (byte* / int1* / uint2* / int2* / int4* / int8 / real*)HObject (byte* / int1* / uint2* / int2* / int4* / int8 / real*)Hobject (byte* / int1* / uint2* / int2* / int4* / int8 / real*) *allowed for compute devices

Input image.

ExpImageexpImageexp_image (output_object) (multichannel-)image(-array) → object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

Output image.

BasebaseValbase (input_control) number → (string / integer / real)HTuple (HString / Hlong / double)HTuple (string / int / long / double)Union[int, float, str]Htuple (char* / Hlong / double)

Base of the exponentiation.

Default: 'e'"e"
Suggested values: 'e', 2, 10"e", 2, 10

Combinations with other operators🔗

Combinations

See also

pow_imagePowImage, log_imageLogImage

Module🔗

Foundation