You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. the edt3aafunc.c comes from another library and mostly used for illustration. Not sure it's worth optimizing it and it may break things. Did you notice huge speedup with your patch?
After trying demos and reading through source code of
edt3aafunc.c
I think there is some room for small optimizations.Use float instead of double in distance field computations.
Remove lines from
computegradient()
functionand lines from
edgedf()
functionDivision by zero is handled by the
if (gx==0 || gy==0)
few lines before.edtaa3()
function use:Hope this doesn't break anything.
Great library, bye.
The text was updated successfully, but these errors were encountered: