skimage 0.17.2

ParametersReturnsBackRef
is_low_contrast(image, fraction_threshold=0.05, lower_percentile=1, upper_percentile=99, method='linear')

Parameters

image : array-like

The image under test.

fraction_threshold : float, optional

The low contrast fraction threshold. An image is considered low- contrast when its range of brightness spans less than this fraction of its data type's full range.

lower_percentile : float, optional

Disregard values below this percentile when computing image contrast.

upper_percentile : float, optional

Disregard values above this percentile when computing image contrast.

method : str, optional

The contrast determination method. Right now the only available option is "linear".

Returns

out : bool

True when the image is determined to be low contrast.

Determine if an image is low contrast.

Examples

This example is valid syntax, but we were not able to check execution
>>> image = np.linspace(0, 0.04, 100)
... is_low_contrast(image) True
This example is valid syntax, but we were not able to check execution
>>> image[-1] = 1
... is_low_contrast(image) True
This example is valid syntax, but we were not able to check execution
>>> is_low_contrast(image, upper_percentile=100)
False
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.viewer.widgets.core.Slider skimage.exposure.exposure.is_low_contrast

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/exposure/exposure.py#589
type: <class 'function'>
Commit: