Convert image outline to multi-slider representation

Dec 15, 2010 at 4:36pm

Convert image outline to multi-slider representation

Hi everyone, I am trying to use the outline of an image to set the values of sliders in the multi-slider object. Currently I load an image into jit.qt.movie and using the “idlemouse” message I can manually trace the image (just a line drawing) from left to right and using the Y co-ordinates approximate the image in a multi-slider. I am wondering is there a way whereby I can just load an image and get a list of values that represent a left to right line drawing that I can use to set the multi-slider. Any advice appreciated. Maybe there is a non-jitter way of achieving this?

The images will just be basic line drawings eg the outline of a mountain or skyline. Two color, background white, line black.

PS I am new to jitter.

#53962
Dec 17, 2010 at 8:44pm

start by looking at the helpfiles for jit.spill and jit.iter. that might give you some ideas…. could you post one of those line drawings? I could run some tests then.

#194162
Dec 23, 2010 at 10:33am

Hi MIB, thanks i'll look at those help files. I've attached one of the images.

[attachment=149731,1585]

Attachments:
  1. imagetrack.jpg
#194163
Dec 23, 2010 at 8:35pm

There are probably better ways of doing this, but this should definitely get you started.
Hope this is helpful.

Edit: you might want to play with the [< 10] number. I just chose a low number that wasn’t 0. not sure how low you can go before you lose most of the data.

– Pasted Max Patch, click to expand. –
#194164
Aug 29, 2013 at 4:15am

dude please, stop bringing up 3 years old threads to advertise your product. It might be something interesting, but in that case just start your own thread describing what it can bring to the MaxMSP community. That kind or process might be bad publicity in the end.

#260203
Oct 14, 2013 at 1:19am

@Vichug: I think you’re actually talking to a bot…

#267969

You must be logged in to reply to this topic.