Forums > Jitter

cv.jit.snake (OTP!) helper patch

July 27, 2008 | 9:10 pm

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

July 28, 2008 | 9:17 am

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!

July 28, 2008 | 6:51 pm

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

August 31, 2014 | 12:14 am

Does anyone have what Yair posted in 2008? Uff..

September 17, 2014 | 4:35 am

Hello, I’ve just found it, if you still need it.

September 19, 2014 | 5:59 am

Hi Riccardo,

I didn’t find it. So if you can upload it here, I would really appreciate it.

September 19, 2014 | 1:05 pm

here it is

September 20, 2014 | 1:00 am

Thank you so much, Riccardo!!

Viewing 8 posts - 1 through 8 (of 8 total)

Forums > Jitter