I’m working on flood extraction using S1-GRD Products.
I have an issue regarding the binary flood output obtained using the band math operator. The result is enough good, but it contains many isolated single pixels which are not relevant for my goals (see the snapshot below).
I tried unsuccessfully to exclude them using the available filters.
Maybe (maybe not!), it would make sense to try to solve my issue using the band math, but I don’t have idea how to say, in the band math language, “set as 0 the isolated pixel” or “keep as 1 only the clusters bigger than one (or even 2-3) pixel”.
Do you have any ideas about the expression to use with the band math operator? Do you know any other operation [available in SNAP] to achieve my target?