Displays images without scaling the intensity.
TV, image [, position]
If image is not already of byte type, it is converted prior to use, although the conversion may distort the data contained in the image.
NOTE: To insure data integrity, use the TVSCL procedure instead of TV. TVSCL does a byte scaling before displaying the image.
channel
position
If Centimeters is not present, position values are taken to be in device coordinates.
Channel
Data
Device
Inches
Normal
Order
True
NOTE: To use True, the image parameter must have three dimensions, one of which is equal to 3.
YSize
Z
Windows Users: Because Windows NT reserves 20 out of the available 256 colors, you might achieve better results displaying color images with the TVSCL procedure. TVSCL automatically scales the color intensities to the full range of available colors.
The starting x-coordinate position is defined as:
xdim and ydim are the dimensions of the array,
mandril = BYTARR(512, 512) OPENR, unit, !Data_dir + 'mandril.img', /Get_lun READU, unit, mandril FREE_LUN, unit
WINDOW, XSize=512, YSize=512 TV, mandril
TV, mandril, /Order
small_img = CONGRID(mandril, 100, 100)
CONTOUR, small_img TV, small_img, 0, 0, /Data
FOR i=0, 24 DO TV, small_img, i
data = BYTSCL(DIST(60))
TV, data
LOADCT, 5
enlarge = REBIN(data, 480, 480)
TV, enlarge
enlarge = REBIN(data, 480, 480, /Sample) TV, enlarge
enlarge = CONGRID(data, 480, 480) TV, enlarge
enlarge = CONGRID(data, 480, 480, /Interp) TV, enlarge
For more information, see Image Display Routines: TV and TVSCL in Chapter 6 of the PV-WAVE User's Guide.