Forums > Jitter

Convert image outline to multi-slider representation

December 15, 2010 | 4:36 pm

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.



MIB
December 17, 2010 | 8:44 pm

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.


December 23, 2010 | 10:33 am

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

[attachment=149731,1585]

Attachments:
  1. imagetrack.jpg


MIB
December 23, 2010 | 8:35 pm

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. –

August 29, 2013 | 4:15 am

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.


October 14, 2013 | 1:19 am

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


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