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?
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.
-Ben
jit.3m and splitting the jitter matrix output into 3 separate planes (RGB) should do the trick!
Thanks man361.. But I don't get what the mean, min and max values are that the jit.3m generates?
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.
do you know about jit.histogram? sounds like it might be useful to you.
no, i havent! but looks like it might be useful! thanks MIB!
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.
Ah... makes sense now.. Thanks!! :)