mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 21:38:29 +08:00
Corrected indentation to follow PEP8
This commit is contained in:
@@ -134,8 +134,8 @@ def threshold_otsu(image, nbins=256):
|
||||
# Check if the image is multi-colored or not
|
||||
if image.min() == image.max():
|
||||
raise ValueError("threshold_otsu is expected to work with images " \
|
||||
"having more than one color. The input image seems " \
|
||||
"to have just one color {0}.".format(image.min()))
|
||||
"having more than one color. The input image seems " \
|
||||
"to have just one color {0}.".format(image.min()))
|
||||
|
||||
hist, bin_centers = histogram(image.ravel(), nbins)
|
||||
hist = hist.astype(float)
|
||||
|
||||
Reference in New Issue
Block a user