We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Saturate video (Read 748 times)
Saturate video
May 11th, 2010, 11:17am
 
Hi Guys

Extreme noob here.

So I'm capturing my video device using Capture and processing.video.* But before I feed it onwards for further analysis I really want to do some calibrating of the image. Specifically, I think I want to saturate the video somewhat so that colours stand out more obviously. Eventually feeding this into colour tracking. But the image is reasonably dull and grey. So a saturation stage would be great.

I've done some searching, and there is talk about going through the pixels array and increasing a value (HSB I think) before converting it back into RGB. But I don't know what format my video is upon being processed by processing, nor how to distort the image at the pixel level.

Maybe there is a simple saturation function that I can plug my video feed into, but I have not been able to find this.

Please help, the project I'm working on needs to be happening by 7 days time!!! eek.
Re: Saturate video
Reply #1 - May 11th, 2010, 1:19pm
 
Just want to chime in, after much searching eventually I came across the library, Imageadjuster (http://www.davebollinger.com/works/imageadjuster/)

Which performs such image adjusting with ludicrous ease.

However, if anyone wants to answer my questions (the HSB/RGB thing, and any other methods of doing this) for the sake of improving my wisdom, feel absolutely free. Smiley

many thanks
Page Index Toggle Pages: 1