You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Input of threshold_otsu should be grayscale, but this is not documented #1867
add in the docstring that the image should be grayscale, and raise a warning if the shape of the image is (n_row, n_col, 3 or 4).
add a multichannel keyword argument and compute a threshold value for each channel (using adapt_rgb decorator??). However, I'm not sure whether it's of any use to return a vector threshold instead of a scalar value.
Long-term solution: look for a multichannel thresholding algorithm, that would typically use clustering I think.
Activity
anuragphadke commentedon Jan 8, 2016
following up on the issue, converting the image to grayscale and saving as JPG via GIMP also works.
JDWarner commentedon Jan 9, 2016
Caution: JPEG is lossy and usually RGB under the hood. It's very common for a grayscale image saved as JPEG to have minor color halos.
Instead, save as PNG - which is lossless - or consider using
rgb2grayin this package.OrkoHunter commentedon Jan 24, 2016
Should this be closed now?
JDWarner commentedon Jan 24, 2016
Closed by #1876, thanks for the reminder @OrkoHunter