更新 Zivid SDK 后 2D 彩色图像颜色不一致

问题

使用相同的 2D 颜色设置更新 Zivid SDK 后,Zivid 相机会输出不同的颜色图像。

可能的原因

For Zivid 2, updating from SDK 2.7 or earlier to SDK 2.8-2.10

The color balance calculation for Zivid 2 was updated in SDK 2.8 and remained unchanged through SDK 2.10. This means that the color values for a given pixel may differ after updating from SDK 2.7 or earlier to any of SDK 2.8, 2.9, or 2.10. There is only an inconsistency if the Color Balance(色彩平衡) values are larger than 1. The difference is more pronounced for higher gain values. The images below illustrate the inconsistency between SDK 2.7 and SDK 2.8.

使用 SDK 2.7 捕获的 2D 图像 使用 SDK 2.7 捕获的 2D 图像
使用 SDK 2.8 捕获的 2D 图像 使用 SDK 2.8 捕获的 2D 图像

For all cameras, updating from SDK 2.10 or earlier to SDK 2.11 or later

Starting with SDK 2.11, Zivid Studio represents colors in sRGB, instead of linear RGB. The histogram and the RGB color channel values for a given pixel are still displayed in linear color space. The image below shows the same image represented in sRGB and linear RGB.

sRGB 空间中表征的颜色。 sRGB 空间中表征的颜色。
线性 RGB 空间表征的颜色。 线性 RGB 空间表征的颜色。

显示器通常期望 sRGB 空间中的图像,并在解释图像进行显示之前进行逆伽玛校正。有关更多信息,请访问 2D 色彩空间、镜头畸变和输出格式 。

解决方案

The SDK 2.11-or-later sRGB change is expected, correct behavior and needs no fix. For the SDK 2.8-2.10 color balance change, if the color balance is wrong, re-tune the color balance gain values either manually or by following our 调整色彩平衡 guide.