TVSCL Procedure
Scales the intensity values of an input image into the range of the image
display, usually from 0 to 235 on Windows and 0 to 255 on X Windows systems, and outputs the data to the image display at the specified location.
Usage
Input Parameters
Keywords
Bottom
Specifies the lower bound when scaling the intensity values.
Centimeters
If present, specifies that all position values (the x y parameters and the XSize and YSize keywords) are in centimeters from the origin. This is useful when dealing with devices that do not provide a direct relationship between image pixels and the size of the resulting image, such as PostScript printers.
If Centimeters is not present, position values are taken to be in device coordinates.
Channel
The memory channel to be written. This keyword is identical to the channel input parameter; only one needs to be used.
Data
If present, specifies that all position and size values are in data coordinates. This is useful when drawing an image over an existing plot, since the plot establishes the data scaling.
Device
If present, specifies that all position and size values are in device coordinates. This is the default.
Inches
If present, specifies that all position and size values are in inches from the origin. This is useful when dealing with devices that do not provide a direct relationship between image pixels and the size of the resulting image, such as PostScript printers.
Normal
If present, specifies that all position and size values are in normalized coordinates in the range 0.0 to 1.0. This is useful when you want to draw an image in a device-independent manner.
Order
If specified, overrides the current setting of the !Order system variable for the current image only. If nonzero, Order causes the image to be drawn from the top-down, instead of from the bottom-up (the default).
Top
Specifies the upper bound when scaling the intensity values.
True
(UNIX/OpenVMS Only) If present and nonzero, indicates that a true-color image is to be displaced and specifies the index of the dimension over which color is interleaved:
NOTE: To use True, the image parameter must have three dimensions, one of which is equal to 3.
Discussion
Example
OPENR, unit, FILEPATH('aerial_demo.img', $
Subdir='data'), /Get_Lun
img = BYTARR(512, 512)
READU, unit, img
FREE_LUN, unit
WINDOW, 0, XSize = 1024, YSize = 512
TV, img
TVSCL, img, 1
Figure 2-125 Unscaled image (left); scaled image (right).
Figure 2-126 Unscaled image (left); scaled image (right).
See Also


doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights
reserved.