


Transform rgb image data from the internal color space to display space
[img,vci] = displayRender(img,vci,isa);
In the general processing pipeline, sensor data are demosaiced, converted
to the internal color space, and then color balanced. After the color
balancing the data must be converted from the internal color space to the
display representation. It is that last step that is performed here.
This routine calculates and then applies the linear transforms that takes
the data from the internal color space into display space. The transform
from the internal color space to the display values is computed using
ieInternal2Display. This transform is stored in the vci list of
transforms.
There is a scale factor on that matrix that is set to guarantee that the
maximum sensor voltage maps into the maximum display output. This scale
factor is calculated in scaleMTransform. The logic is:
The complete transformation from sensor data to display is rgb*(T*D*M),
where T is color conversion, D is color balance and M is this rendering
transform.
We would like the max sensor voltage, sm, to map to a value close to 1 in
display space. That is, we would like the maximum voltage in the vector
(sm*[1,1,1]) * (T * D * M)
to be 1. We set the scale factor of M accordingly.
Copyright ImagEval Consultants, LLC, 2005.