bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / exposure / exposure / adjust_log
function
skimage.exposure.exposure:adjust_log
source: /dev/scikit-image/src/skimage/exposure/exposure.py :691
Signature
def adjust_log ( image , gain = 1 , inv = False ) Summary
Performs Logarithmic correction on the input image.
Extended Summary
This function transforms the input image pixelwise according to the equation O = gain*log(1 + I) after scaling each pixel to the range 0 to 1. For inverse logarithmic correction, the equation is O = gain*(2**I - 1).
Parameters
image: ndarrayInput image.
gain: float, optionalThe constant multiplier. Default value is 1.
inv: float, optionalIf True, it performs inverse logarithmic correction, else correction will be logarithmic. Defaults to False.
Returns
out: ndarrayLogarithm corrected output image.
See also
Aliases
-
skimage.exposure.adjust_log