Operator Reference
log_image (Operator)
log_image
— Calculate the logarithm of an image.
Signature
Description
log_image
calculates the logarithm to the base Base
of an input image Image
and stores the result in the image
LogImage
. If Image
contains gray values outside
the valid domain of the logarithm function, i.e., ,
the corresponding gray values in LogImage
are set to 0.
Attention
log_image
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
- 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
Image
(input_object) (multichannel-)image(-array) →
object (byte* / int1* / uint2* / int2* / int4* / int8 / real*) *allowed for compute devices
Input image.
LogImage
(output_object) (multichannel-)image(-array) →
object (real)
Output image.
Base
(input_control) number →
(string / integer / real)
Base of the logarithm.
Default: 'e'
Suggested values: 'e' , 2, 10
See also
Module
Foundation