Added missing documentation about raised error

This commit is contained in:
Martin Zackrisson
2016-05-30 11:29:35 +02:00
parent e167be511d
commit f4123a4e36
+6
View File
@@ -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
----------