What's the best way to identify geometric patterns or patch shapes on satellite images or processed map products?

For example, to identify whether a tile contains NDVI or pseudocolour values that have the shape of a square, circle, irregular, elongated. Also, to identify whether the shapes are solid (all values within are equal) or rather diffused.

Best if in R stats language, python or QGis (or any combination of them).

Similar questions and discussions