MacLight icon indicating copy to clipboard operation
MacLight copied to clipboard

Attempt average colour calculation by resizing

Open codeincontext opened this issue 13 years ago • 2 comments

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

codeincontext avatar Oct 26 '11 17:10 codeincontext

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?

tomgco avatar Jan 14 '12 14:01 tomgco

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

codeincontext avatar Jan 14 '12 15:01 codeincontext