{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / filters / thresholding / try_all_threshold

function

skimage.filters.thresholding:try_all_threshold

source: /dev/scikit-image/src/skimage/filters/thresholding.py :108

Signature

def   try_all_threshold ( image figsize = (8, 5) verbose = True )

Summary

Returns a figure comparing the outputs of different thresholding methods.

Parameters

image : ndarray of shape (M, N)

Input image.

figsize : tuple, optional

Figure size (in inches).

verbose : bool, optional

Print function name for each method.

Returns

fig, ax : tuple

Matplotlib figure and axes.

Notes

The following algorithms are used:

  • isodata

  • li

  • mean

  • minimum

  • otsu

  • triangle

  • yen

Examples

from skimage.data import text
fig, ax = try_all_threshold(text(), figsize=(10, 6), verbose=False)

Aliases

  • skimage.filters.try_all_threshold