cv.jit.snake (OTP!) helper patch

Jul 27, 2008 at 9:10pm

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

http://www.iamas.ac.jp/~jovan02/cv/index.html

#39020
Jul 28, 2008 at 9:17am

Thanks Yair!

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!

#136802
Jul 28, 2008 at 6:51pm

i thought about your goal and the snake, in its current form, cant handle non convex forms.

#136803

You must be logged in to reply to this topic.