Performing non-linear filters on images can introduce aliasing, the method described in this paper helps to recover images damaged by such filters. The algorithm is done by adjusting gradients in regions that were potentially damaged in the filtered image.
The source code is available on github.
The following images were zoomed in to better assess the results, given an original image:
it is applied a non-linar filter (here a thresholding), which leads to the aliased image:
performing the method described in the anti-aliasing recovery paper gives us the clean and filtered image, without aliasing: