Corrected indentation to follow PEP8

This commit is contained in:
Martin Zackrisson
2016-05-30 11:25:55 +02:00
parent 8b6460b06e
commit e167be511d
+2 -2
View File
@@ -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)