codeincontext / MacLight

The mac client for MacLight. Sends color data to ArduinoLight devices
31 stars 6 forks source link

Attempt average colour calculation by resizing #3

Open codeincontext opened 13 years ago

codeincontext commented 13 years ago

Could potentially be more efficient to resize the screen contents down to a 1x1 pixel image in CoreImage. Need to implement and compare

tomgco commented 12 years ago

Wouldn't it be better to sample a 20 pixel border of the main screen to give a better representation of the background.

For example, If you had a video of someone on video in the middle of the screen with a green background. I assume that you would want the average to be green and not the brown / black of the person?

Or I guess add this as a separate feature?

codeincontext commented 12 years ago

That's a nice idea, a lot like what Philips do.

I'll add it in and see how it goes, but I'm pretty sure that it won't look great in practice without smoothing/averaging the colour output over time. You're likely to get flickers and flashes of colour as the camera pans etc, I reckon.

Keen to try it though.

ps: Should definitely be a new issue