I have a noisy water mask extracted from SAR. Using the bandmath-subtraction from the speckled mask (water bodies excluded), but the outcome doesnt produce the water bodies. I thought that the extraction would solve the problem though.
I did try it, but it doesnt remove it all. The second band mask that I have is all noise and unwanted areas which I like to subtract it from my main water mask image. I dont really know why the subtraction didnt work properly.
Yes, both mask bands are extracted from the same db SAR image. the First mask is “db band range” and the second one is a “detect line filter (e.g., Roberts Cross N-E)”.
I found that one of your data is 0 and 255, the other is 0, 254 and 255. In your example, those were 0 and 1 but I guess there were more than just two values resulting in at least 3 different values in your results.
that is because - according to your screenshots - you don’t have 254 as a value. Have a close look at your data to see which values your raster consists of and then reclassify the ones you don’t want - it’s simple maths