g8Tos8LUT[i] = (byte) i;
}
ICC_Transform[] transformList = new ICC_Transform[2];
ICC_ColorSpace srgbCS =
(ICC_ColorSpace) ColorSpace.getInstance(ColorSpace.CS_sRGB);
transformList[0] = new ICC_Transform (
grayCS.getProfile(), ICC_Transform.Any, ICC_Transform.In);
transformList[1] = new ICC_Transform (
srgbCS.getProfile(), ICC_Transform.Any, ICC_Transform.Out);
ICC_Transform t = new ICC_Transform(transformList);
byte[] tmp = t.colorConvert(g8Tos8LUT, null);
for (int i = 0, j= 2; i <= 255; i++, j += 3) {
// All three components of tmp should be equal, since
// the input color space to colorConvert is a gray scale
// space. However, there are slight anomalies in the results.
// Copy tmp starting at index 2, since colorConvert seems