将 ARCore LightEstimate 转换为 ARKit ARLightEstimate

Convert ARCore LightEstimate to ARKit ARLightEstimate

我试图在从相机当前帧读取的照明方面找到这两个 SDK 之间的中间地带。

有没有一种方法可以将它们转换成另一种,或者将它们都转换成另一种度量,这将帮助我准确地假设取自 Android 或 iOS 的照明条件?

具体来说,我对环境颜色和温度感兴趣,所以(iOS 对我来说更接近所需)。

这似乎是我们可以将环境光估计值转换为流明的最接近结果:

In general, though, lumens will range from 0-2000, so a rough estimate would be to multiply the brightness (ranging from 0..1) by 2000.

所以如果我们想从 ARCore 转换到 ARKit,我们可以做 lightEstimation * 2000(ARCore lightEstimation 是 0..1)

如果我们想将流明转换为相对亮度:ambientIntensity/2000(ARKit returns 值从 0 - 2000 流明)