ooooh, that looks promising. That's better results in picking up the white-water. And the canal water looks better too. I see the water below the bridge is still missing... that was an area I was having issues too. Sometimes, I find that can look pretty good not covering fully the whit-water at altitude.
Thx for posting your script as I will test that out on Monday. Curious as to how long the detection process took? When I run my script with the K-means cluster set at 32 it takes 23 minutes to run. At 16 clusters it cuts the time down to 13 minutes and not much difference better or worse. It takes me on average 3 hours to process 25 images (like the sample I sent ya). Which if it can produce near perfect detection would be worth it.
"What value did you enter for the Scale parameter in the StdObject step? It seems to be that step that gives the overflow"
If you are talking about the Std Deviation (object), the Scale is 1. I did not change that.
Curious, what are the other two bands for a 6-band image?