LogarithmImage


Computes a natural logarithm of each pixel.

Applications:Transforms an image in such a way that a quotient on the input image becomes a difference on the output image. This can be useful for dealing with variable illumination.

Syntax

C++
Python
 
def LogarithmImage(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inScale: float | None = None,
	inOffset: float = 1.0,
	inNormalizeZero: bool = False,
	diagLutProfile: Profile | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Region of interest
Input value inScale float | None None Scaling factor (default: 255)
Input value inOffset float 1.0 - 1.0 Offset factor
Input value inNormalizeZero bool False Specifies whether the output range should be rescaled to start from 0
Output value outImage Image Output image
Diagnostic input diagLutProfile Profile | None None Profile depicting the resulting look-up table of the logarithm transform

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.