0

I am looking for a way to implement that QGIS Filter to smooth agriculture zones within a field. Right now I have many artifacts. I want to smooth and eliminate artifacts smaller than specified number of pixels and instead pick neighboring max.

I tried using ndimage.grey_dilation and got an acceptable result, but still have artifacts at then end (that I'd like to remove without re-running through a new dilation).

The mentioned QGIS filter seems to do something better.

Just curious. I know it is called morphological opening, but results are not awesome.

See below: image before and after grey_dilation

0 Answers0