Hi,
Thanks for your reponse.
You're right, the image needs to be converted to
gray scale (single channel) before being given as input to
threshold_otsu.
Indeed, in the present case, the
threshold is computed for the flatten
1D array of all
three channels, inside the
otsu_threshold function.
However, I'm getting better results with the previous code than with the thresholding of the
gray scale image for this image:
http://www.e-geos.it/gallery/featured/flooding_veneto/CSKS1_SCS_B_HI_08_HH_RD_SF_20101103172214_20101103172222_orto_hh_slc_geo_subset.jpg. Maybe, it's because the
threshold is computed from the accumulated intensities of all the channels.
Maybe I could obtain similar results if I perform the
otsu thresholding on all three channels and try to stack them (OR operator).