The routine for getting the full grid of pixel data from an IDL graphics window is TVRD. For example, let's say you have a 400 x 400 pixel IDL graphics window with an image loaded on it:
img = tvrd(TRUE=1)
will give you a 3 x 400 x 400 byte array, where:
img[0,*,*] shows the red intensities of the 400 x 400 pixel grid
img[1,*,*] shows the green intensities of the 400 x 400 pixel grid
img[2,*,*] shows the blue intensities of the 400 x 400 pixel grid
and
img[*, 24, 300] shows you the RGB color triplet at the [24, 300] location on the IDL graphics window.
James Jones
|