Measure scene illuminant using test chart
measures the scene illuminant using the gray regions of interest (ROIs) of an
Imatest® eSFR chart [1] or an X-Rite®
ColorChecker® Classic chart [2].illuminant
= measureIlluminant(chart
)
To white-balance an image, use the chromadapt
function.
It is recommended to measure the scene illuminant using linear image data. If
you need to linearize your image data, then you can use the rgb2lin
function.
[1] Imatest. "Esfr". https://www.imatest.com/mathworks/esfr/.
[2] X-Rite Photo and Video. "ColorChecker Classic". https://xritephoto.com/colorchecker-classic