1. Color Correction
ColorCorrection.bcd, ColorCorrectionImpl.bcd
This is the Cedar implementation of the color correction routines designed by Gary Starkweather. This technique is based on a set of density measurements for each output device. These densities are stored in the files Panasonic.densities, C150.densities and Versatec.densities for the thermal transfer, ink jet and versatec color printers respectively.
Correct: PROC[ideal: RGB, correction: Data] RETURNS[corrected: RGB, clipped: BOOLEAN];
Transforms an Imager.RGB into a device dependent version.
CorrectBytes: PROC[red, green, blue: BYTE, correction: Data] RETURNS[newR, newG, newB: BYTE, clipped: BOOLEAN];
Does the same thing for bytes, only faster