log_image log_image LogImage LogImage log_image (Operator)
Name
log_image log_image LogImage LogImage log_image
— Calculate the logarithm of an image.
Signature
def log_image (image : HObject, base : Union[int, float, str]) -> HObject
Description
log_image log_image LogImage LogImage log_image
calculates the logarithm to the base Base Base Base baseVal base
of an input image Image Image Image image image
and stores the result in the image
LogImage LogImage LogImage logImage log_image
. If Image Image Image image image
contains gray values outside
the valid domain of the logarithm function, i.e.,
,
the corresponding gray values in LogImage LogImage LogImage logImage log_image
are set to 0.
Attention
log_image log_image LogImage LogImage 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 Image Image image image
(input_object) (multichannel-)image(-array) →
object HImage HObject HObject Hobject (byte* / int1* / uint2* / int2* / int4* / int8 / real*) *allowed for compute devices
Input image.
LogImage LogImage LogImage logImage log_image
(output_object) (multichannel-)image(-array) →
object HImage HObject HObject Hobject * (real)
Output image.
Base Base Base baseVal base
(input_control) number →
HTuple Union[int, float, str] HTuple Htuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Base of the logarithm.
Default:
'e'
"e"
"e"
"e"
"e"
Suggested values:
'e' "e" "e" "e" "e" , 2, 10
See also
pow_image pow_image PowImage PowImage pow_image
,
exp_image exp_image ExpImage ExpImage exp_image
Module
Foundation