cv.jit.snake (OTP!) helper patch
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.
again, thanx Jean-Marc Pelletier for cv.jit
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!
i thought about your goal and the snake, in its current form, cant handle non convex forms.
Does anyone have what Yair posted in 2008? Uff..
Hello, I’ve just found it, if you still need it.
I didn’t find it. So if you can upload it here, I would really appreciate it.
Thank you so much, Riccardo!!