Colour check

Hi everyone,

Can anyone tell me how I can check an area of a scene for the presence of pixels of a specific colour. I am quite new to all this stuff so be gentle please.

[COLOR=red]Problem solved.[/COLOR]