mkcolor -- generates true color image
mkcolor rfile gfile bfile outfile cutmode [rmin rmax gmin gmax bmin bmax]
This task generates an encoded color image from three images
representing the red, green, and blue components. By default a base
of 6 is used in the encoding. Each component image is remapped to
values limited by the base and dependent on the cutmode. For
example, with the default base of 6, each pixel will be assigned a
value from 0 to 5. If the cutmode is HISTogram, a histogram
equalization is used to assign intensity values. If the cutmode is
LINEAR, the values will be scaled linearly from [rgb]min to
[rgb]max. If the cutmode is LOG, the values will be scaled logarithmically
from [rgb]min to [rgb]max. If a MAXCOL cutmode is used, the maximum value
for an individual pixel from the three component images is used as the
maximum intensity, and the other two colors are scaled relative to
the that maximum and [rgb]min.
If IR, IG, and IB represent the red, green, and blue intensities
of an individual pixel, respectively, the pixel output image
has the value: IR + IG*base + IB*base*base.
1- Generate color image with histogram equalization cut of intensities
> mkcolor red.img blue.img green.img out.img sclmode=hist
2- Generate color image with linear cut of intensities in base 8
> mkcolor red.img blue.img green.img out.img sclmode=lin
rmin=1 rmax=12 gmin=1 gmax=12 bmin=1 bmax=12 base=8
mkhrimg