A really nice and cheap way to make anti-aliasing. (based on matrix and idistort) SRD for 'Sobel / Rotated / iDistort' V2 better deals with low contrast !
Antialiasing_SRD
Updated: 27 June 2024
Author: Plemouss
Compatible Nuke versions: 13.0 or later
Compatibility: Linux, Mac, Windows
While doing researches around stylisation and kuwahara filter. I found a really nice and cheap way to make anti-aliasing.
I make a sort of a sobel filter from the image but rotated :
on green channel :
2 1 0
1 0 -1
0 -1 -2
on red channel :
0 1 2
-1 0 1
-2 -1 0
By doing so I detect the 'stairs' patterns on the image. It worked better on colors between 0 and 1 so I added a bit of tweak if you are in aces with crazy values...
Then I simply apply a sublte idistort one way and a second one with same intensity the reversed way.
I hope it helps you create awesome images !
Have fun with it :)