{ } Raw JSON

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 : ndarray

Input image.

cutoff : float, optional

Cutoff of the sigmoid function that shifts the characteristic curve in horizontal direction. Default value is 0.5.

gain : float, optional

The constant multiplier in exponential's power of sigmoid function. Default value is 10.

inv : bool, optional

If True, returns the negative sigmoid correction. Defaults to False.

Returns

out : ndarray

Sigmoid corrected output image.

See also

adjust_gamma

Aliases

  • skimage.exposure.adjust_sigmoid

Referenced by