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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inScale | float | None | None | Scaling factor (default: 255) | |
![]() |
inOffset | float | 1.0 - ![]() |
1.0 | Offset factor |
![]() |
inNormalizeZero | bool | False | Specifies whether the output range should be rescaled to start from 0 | |
![]() |
outImage | Image | Output image | ||
![]() |
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.




