Contours/Skeleton

hello everyone.

i’m using Contours/Skeleton a lot lately and was wondering about how to have better antialiasing. for the moment i’m upscaling / apply then downscale but maybe there is a simpler way.
i m also thinking of a way to have some consistency on frames sequences.

i’m looking for insight about the method used .
i’m not exactly sure where is the code of the filter ?
thanks for any help.
lulu