For blending two color transformation look-up tables, the weights used for
combining the tables are designed such that transitions from one look-up
table to another are smooth and do not create objectionable artifacts.
Building the individual weights includes obtaining the position of a given
input point from the input color space, both in the input device and an
output device gamut. Weight calculation is obtained by (1) if the input
color falls in the intersection of predefined percentages of both the
input gamut and the output gamut, then a pictorial LUT is used and the
weight is set to 1.0; (2) if the input color falls outside the input
and/or output gamut, then a graphics LUT is used and the weight is set to
1.0, but if the input color is inside the predefined percentage of the
output gamut and anywhere inside the input gamut, a weight is calculated
according to the position of the input color relative to the input gamut;
(3) if the input color is inside the output gamut but outside the
predefined percentage of the output gamut, and inside the input gamut, a
test is used to determine if the input color is in the predefined
percentage of the input gamut. When the restrictions of (3) are met, a
weight is calculated according to the position of the input color relative
to the output gamut; however when the restrictions of (3) are not met a
weight is calculated according to the position of the input color relative
to both the input and output gamut.