8

我正在研究一些用于白平衡操作的图像处理算法。似乎以前的 Stackoverflow问题很好地回答了自动白平衡算法的问题。

但是我想知道如何从一种温度转换为另一种温度,即假设(及其一个很大的假设)白平衡算法可以获取处理后的图像(例如 JPEG 等)并将场景中的整体温度置于 6500 ,您将如何通过算法将场景“冷却”或“加热”到特定温度?这将是图像编辑程序中的常见操作,尽管这些通常对未应用处理(色彩空间操作或其他)的 RAW 图像进行操作 - 对于 RAW 文件 - 单个 RAW 文件可能包含足够的信息(在文件头)关于相机传感器的颜色校准以使特定的温度转换更具确定性?

任何意见表示赞赏 - 谢谢!

4

3 回答 3

5

If you work on RAW image, you can use Von Kries's proposition - and multiply by 3x3 diagonal gain matrix. In order to find these 3 numbers, you can photograph under some illumination an object which is "white" - like MacBeth ColorChecker If you can't do this, try to use some Automatic White Balance Algorithms.

Processing WB in JPEG is problematic since it is usually after non-linear function - Gamma. You need to apply inverse Gamma function, and only then you will be able to do white balance.

于 2011-10-17T00:19:44.387 回答
1

此类问题的标准参考是 Charles Poynton 颜色常见问题解答,此问题在此处得到解答:http ://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html#RTFToC20 。希望通过阅读常见问题解答的其他部分,您将了解如何填充矩阵。

于 2011-10-17T02:20:20.883 回答
0

The White Balance is just a setting in the EXIF file header of a RAW image. It is a short integer meaning that you can write your desired colour temperature setting in there.

于 2011-05-19T14:32:17.020 回答