Closed LogWell closed 2 years ago
Hi there, the displayed value is srgbToLinear(c / 255)
, where srgbToLinear
is the standardized sRGB transform. Image from Wikipedia:
If your PNG has an alpha channel a
, then the complete formula is srgbToLinear(c / 255) * a / 255
. Note that the alpha multiplication happens after the conversion to linear colors. (This is defined in the PNG specification.)
Cheers!
I want to analyze an image numerically. The displayed result is different from the output of OpenCV/cvkit.
Take the first-pixel(top-left) value, when check in cvkit with:
sv ORTHO_ColorN_01_Z000_PRO.png
, and point to the top-left, the result is (126, 131, 254) and is consistent with the firstprint()
. After gammaCorrection and divided by 255, the value is (0.21176471, 0.22745098, 0.98823529), but the displaied value is (0.2086, 0.2270, 0.9911).Since the image is a normal maps(or in other formats such as depth maps), the accuracy of the values is critical. So we hope
tev
can add the ability to display raw value.CODE:
RES: