Adjust one exposure / white balance to match the other (with PIL?)

I have a cheap stereo camera that I use for diving. Sometimes each camera photo aligns or sets the exposure in different ways. Example:

http://www.chrisevans3d.com/temp/forums/left.jpg

http://www.chrisevans3d.com/temp/forums/right.jpg

Is there a way to do this by getting the im.histogram () of each of them, creating a diff or LUT, and then converting one image to another? How does the function “Match colors” in Photoshop?

I would like to release a free software kit to make gopro stereo cameras more usable, so any help would be great.

+5
source share
2 answers

Matching white balance is not a trivial task. The easiest way is to take the gray world and scale the RGB channels of one image so that they match the average RGB values ​​of the other. This will work easily when the scenes are shifted towards the color (instead of gray). You can improve it by rejecting dark / bright pixels, etc. There are tons of paper on white balance. Find an algorithm for estimating the color temperature of an image, and then determine which one is more suitable for scene / camera settings and image normalization.

, .

, , , . .

:

: HP

+ : dcraw

+4