bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / exposure / exposure / adjust_sigmoid
function
skimage.exposure.exposure:adjust_sigmoid
source: /dev/scikit-image/src/skimage/exposure/exposure.py :735
Signature
def adjust_sigmoid ( image , cutoff = 0.5 , gain = 10 , inv = False ) Summary
Performs Sigmoid Correction on the input image.
Extended Summary
Also known as Contrast Adjustment. This function transforms the input image pixelwise according to the equation O = 1/(1 + exp*(gain*(cutoff - I))) after scaling each pixel to the range 0 to 1.
Parameters
image: ndarrayInput image.
cutoff: float, optionalCutoff of the sigmoid function that shifts the characteristic curve in horizontal direction. Default value is 0.5.
gain: float, optionalThe constant multiplier in exponential's power of sigmoid function. Default value is 10.
inv: bool, optionalIf True, returns the negative sigmoid correction. Defaults to False.
Returns
out: ndarraySigmoid corrected output image.
See also
Aliases
-
skimage.exposure.adjust_sigmoid