A question received via email: I used the oft-cluster.bash and oft-clump on two sets of images: 1973 and 2014. The results for 1973 did not look good. For 2014, the results were superb except for one thing. The very tiny polygons. How to remove them? asked 29 Oct '14, 08:44 Anssi ♦♦ |
There are at least two nice ways to accomplish this. First, you can use oft-seg, pass the output of the oft-clump to the program using the -um option and give a desired minimum size in pixels. Second, you can use the gdal_sieve.py. The difference between the two is that whereas oft-seg merges the small segments with the most similar neighboring segment gdal_sieve.py merges them with the largest neighboring polygon. answered 29 Oct '14, 08:52 Anssi ♦♦ |