log_imagelog_imageLogImageLogImagelog_image (Operator)

Name

log_imagelog_imageLogImageLogImagelog_image — Calculate the logarithm of an image.

Signature

log_image(Image : LogImage : Base : )

Herror log_image(const Hobject Image, Hobject* LogImage, const char* Base)

Herror T_log_image(const Hobject Image, Hobject* LogImage, const Htuple Base)

void LogImage(const HObject& Image, HObject* LogImage, const HTuple& Base)

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

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

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

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

static void HOperatorSet.LogImage(HObject image, out HObject logImage, HTuple baseVal)

HImage HImage.LogImage(HTuple baseVal)

HImage HImage.LogImage(string baseVal)

def log_image(image: HObject, base: Union[int, float, str]) -> HObject

Description

log_imagelog_imageLogImageLogImageLogImagelog_image calculates the logarithm to the base BaseBaseBaseBasebaseValbase of an input image ImageImageImageImageimageimage and stores the result in the image LogImageLogImageLogImageLogImagelogImagelog_image. If ImageImageImageImageimageimage contains gray values outside the valid domain of the logarithm function, i.e., , the corresponding gray values in LogImageLogImageLogImageLogImagelogImagelog_image are set to 0.

Attention

log_imagelog_imageLogImageLogImageLogImagelog_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

Parameters

ImageImageImageImageimageimage (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte* / int1* / uint2* / int2* / int4* / int8 / real*) *allowed for compute devices

Input image.

LogImageLogImageLogImageLogImagelogImagelog_image (output_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject * (real)

Output image.

BaseBaseBaseBasebaseValbase (input_control)  number HTupleUnion[int, float, str]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Base of the logarithm.

Default value: 'e' "e" "e" "e" "e" "e"

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

See also

pow_imagepow_imagePowImagePowImagePowImagepow_image, exp_imageexp_imageExpImageExpImageExpImageexp_image

Module

Foundation