i was very excited about the new snake object released in the 1.6b2 cv.jit package.
whats a snake?
"A snake is a sequence of points, or anchors, that seeks to fit itself to edges in an image while trying to maintain its original shape. This achieves something similar to "magnetic lasso" or "intelligent scissors" of some image-editing software."
unfortunately in the help file there is only a manual way to specify an initial snake shape.
i followed the hint and patched cv.jit.blobs.rect object that guides the snake on its mission.
i didn’t touch this until now as i have no urgent need for snakes, but i hope this will help someone, or me, on day.
I was also excited about the snake, especially since I was trying to
make some kind of tracer myslelf – so this is a huge time&nerve saver!
Next task for me is to do proper triangulation/breakup of non-convex
polygons, so we can render these properly using opengl:)
I needed this functionality to get smoothly curved masks from very low
res video (80×60 to fullscreen), and in the end I used very simple
trick to achieve this: low res->slab->heavy multi-pass blur->upscale-
>threshold, carelessly wasting gpu…
but I’m also interested in doing it vectorial, and snake is a very
good starting point!