Colour "sucker"

May 11, 2010 at 10:30pm

Colour "sucker"

Hi I’m fairly new to MaxMSP, but I’m doing a project for uni and am trying to program a “colour sucker” type of thing. I want jitter to pick up the different colours (just an average of the hues) of everything in front of a web camera and display an average of the colours on a jit.window in different objects. So when someone wearing green stands in front of the camera, the percent of green from the camera image, is replicated on a screen. Is this possible to do with jitter or should I be looking at other software?

May 12, 2010 at 12:08am

Not exactly sure what you want to do, but you might want to check out jit.3m. This will look at the incoming matrix as a whole and output the min/mean/max of each plane.

May 12, 2010 at 12:21pm

jit.3m and splitting the jitter matrix output into 3 separate planes (RGB) should do the trick!

May 12, 2010 at 11:23pm

Thanks man361.. But I don’t get what the mean, min and max values are that the jit.3m generates?

May 12, 2010 at 11:27pm

bbracken, basically I want to create a program that once, for example, someone steps in front of the camera, and is wearing say red and green, it will display blocks of green and red, in proportion to the amount of each colour present in the image recieved from the camera.

May 13, 2010 at 12:07am

do you know about jit.histogram? sounds like it might be useful to you.

May 13, 2010 at 1:05am

no, i havent! but looks like it might be useful! thanks MIB!

May 13, 2010 at 6:47pm

you’d be looking for the mean value.. the effective brightness of the plane overall is directly proportional to the mean value.

if you’re looking at only the green plane of a video and do jit.3m on it then the mean value will be higher when theres more green in the matrix.

May 14, 2010 at 12:14am

Ah… makes sense now.. Thanks!! :)


You must be logged in to reply to this topic.