When a programmer reports that he has 3 2D arrays with color data ranging from 0-255 in value, I usually expect each of the 2D arrays to represent the intensity level of a single color shade/hue. That is, one array might hold the intensity of red, the second might be the intensity of green and the third might be the intensity of blue. That is the normal scenario I expect when I hear that someone is trying to "... merge my arrays for one resulting image." If that is your scenario, then this is your solution:
rgbImageArray = BYTARR(3, 100, 100) ; Initialization of a pixel-interleaved image array
rgbImageArray[0,*,*) = myFirstArray ; the red intensity values
rgbImageArray[1,*,*) = mySecondArray ; the green intensity values
rgbImageArray[2,*,*) = myThirdArray ; the blue intensity values
TV, rgbImageArrray, TRUE=1 ; TRUE=1 is for pixel-interleaved RGB color
That is the only approach I can see for what you describe. 2D arrays of values 0-255 represent nothing but the intensity of one kind of light spectrum, ***UNLESS*** you have a 256-element color table accompanying the data that gives those 256 index values a different meaning.
James Jones
|