| rgbdither | color | rgbdither |
rgbdither -- make an RGB composite image using 8-bit pixel dithering
rgbdither red green blue rgb
Rgbdither takes three input IRAF images and produces a special composite IRAF image which may be displayed as an RGB color image using a special color map. The input images are first block averaged by the blkavg factor, pixel values outside the specified ranges are mapped to the nearest endpoint, converted to logarithmic intensities if desired, and the range mapped to 85 integer levels. The red image is mapped to the values 0 to 84, the green image to the values 85 to 169, and the blue image to the values 170 to 254. The corresponding pixels from the three images are then replicated in the output image to form a specified 3x3 dither pattern such as the default of
brg gbr rgb
where r is the red image pixel, g is the green image pixel, and b is the blue image pixel. This produces a composite image which is three times larger in each dimension than the block averaged input images.
When the dithered 8-bit composite image is displayed using a color map that shows values 0-84 as shades of red, 85-169 as shades of green, and 170-254 as shades of blue the eye (or camera) will blend the individual pixels into a RGB color image. See rgbdisplay and color for a description of how to display the composite image. A better techique may be to use rgbto8 .
1. Three 2048x2048 images of the Trifid nebula are obtained in the B, V, and R bandpasses. These images are properly registered. Examination of the histograms leads to selecting the display ranges 1-500 in each band. The large scale colors of the extended emission is of interest and so a block averaging factor 6 will yield a final composite image of size 1023x1023 to be displayed.
cl> rgbdither trifidr trifidv trifidb trifidrgb \ >>> rz1=1 rz2=500 gz1=1 gz2=500 bz1=1 bz2=500 blk=6
Example 1 takes 2:20 minutes (33 seconds CPU) on a SparcStation 2.
rgbdisplay, rgbto8, rgbsun, color.package