cv.jit.snake (OTP!) helper patch

    Jul 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

    • Jul 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 (80x60 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!
    • Jul 28 2008 | 6:51 pm
      i thought about your goal and the snake, in its current form, cant handle non convex forms.
    • Aug 31 2014 | 7:14 am
      Does anyone have what Yair posted in 2008? Uff..
    • Sep 17 2014 | 11:35 am
      Hello, I've just found it, if you still need it. ciao, riccardo
    • Sep 19 2014 | 12:59 pm
      Hi Riccardo,
      I didn't find it. So if you can upload it here, I would really appreciate it.
    • Sep 19 2014 | 8:05 pm
    • Sep 20 2014 | 8:00 am
      Thank you so much, Riccardo!!