diff --git a/skimage/filters/thresholding.py b/skimage/filters/thresholding.py index 285af6d4..ccd88be4 100644 --- a/skimage/filters/thresholding.py +++ b/skimage/filters/thresholding.py @@ -110,6 +110,12 @@ def threshold_otsu(image, nbins=256): threshold : float Upper threshold value. All pixels intensities that less or equal of this value assumed as foreground. + + Raises + ------ + + ValueError + If `image` only contains a single grayscale value. References ----------