image processing - White balance algorithm -


I am processing some image and I need automatic white balance algorithm which is very intensive in terms of CPU computation time is not. Any recommendations?

EDIT: And if it is relevant to efficiency, then I am implementing this as an array of integers with colorful images in Java.

Averageizing the brightest and dark pixel colors (in HSV or HSL) on a relatively simple algorithm screen is. In a pinch, just go with brilliant pixels if the color between the brightest and dark is very different, go with the bright pixel, if it is close to dark black then go with the bright pixel.

Why also look at the dark pixel? Occasionally dark clouds are not close to the black, and the ambient signs indicate light or mist or mist.

If you are a heavy photoshop user, this will give you a sense of it. In some photos the highlighted objects are unrelated (or weakly related) in the underlying colors.

Then adjust the color of all the pixels.

You are the best representation of the light of your colors, until the image is so much like that the CCD is immersed in everything.

RGB operations will require faster RGB for HSV and HSVV. (But maybe you can work with an aluminum or linear interpolation to improve pixels in RGB.)

If you do not want to go by the average pixel color or the most popular color comes madness in this way.

To find the fastest color (and the hottest), you can work in RGB, but you should be multiplier for green, red and blue colors. On RGB monitors, 255 green 255 is bright red, 255 bright blue. I had a good multiplier in my head, but alas, they have escaped from my memory, you probably can do Google for them.

This will fail in the image in which there is no highlight. A matte wall painted, for example. But I do not know what you can do about it.


There are several improvements in making this simple algorithm. You can average more than one bright pixel, grid the image and take bright and dark pixels from each cell, etc. After applying the algorithm, you will get some obvious changes.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -