I know this is probably out of your scope, but since you've been so helpful...

I was wondering if I can just count the number of colors in a window.

it's a matlab project and my best bet is to find the more colorful as appose to a more homogeneous surrounding...

the images vary, so I can't just pick a color (or sum a no. of detections...)

any ideas??