Remove small selections
Dear all,
I have a satellite image and I'm trying to find a way to select all forest areas. I wish there was a tool such a "pattern matching" selection tool that would allow me to select a small forest area and search for all similar areas in the whole image. Kind of a reverse content-aware fill. Unless I'm mistaken, there's unfortunately not such a tool.
Therefore, I'm using the magic wand to select the non-tree areas (such as grass fields) so that I can then invert the selection and that would be my forests.
The magic wand tool works great to select these areas, however (as expected) there are small selections (a lot of them) in the trees as well.
What I'd need would be to remove from a magic wand selection all of the selections that are smaller than, say, 5 pixels, and keep only the "big" areas. This would hopefully give me a selection of fields and hence - my forests.
A manual selection would really be my last possible option, it's a really big area with a _lot_ of discontinuity between forest areas and grass areas.
Any inputs / ideas are warmly welcome.
Best,
r.
