<<<<<<<<<<<<<<<<<

sv_ip_display(sv_ip) SunVision IP sv_ip_display(sv_ip)

NAME

sv_ip_display - display a SunVision image in an X window

DESCRIPTION

The sv_ip_display object accepts a SunVision image filter as its data_in and displays the image in an X window.

SUPERCLASS

object

INSTANCE VARIABLES

data_in is the name of a SunVision filter object (such as an instance of sv_ip_copy) whose image is to be displayed in an X window.

window is the name of an xwindow object in which the input image is to be displayed. If none is given, one will be created with the appropriate dimensions to suit the input image.

lookup_table is the name of a lookup_table object that defines the mapping between pixels in the input image and colors on the screen. If none is given, a default grayscale ramp is created.

colormap is the name of an xcolormap object to hold the allocated colors. If none is given, the default colormap for the display will be used.

MESSAGES

display! displays the image in the X window.

render! is a synonym for display!.

EXAMPLE

<sv-ip-constants sv_ip_display new: `pet_display' data_in=`pet_ip' title=`Original PET data' render! ;

sv_ip_display new: `mr_display' data_in=`mr_ip' title=`Original MR data'

render! ;

sv_ip_shift new: `upper_3bits' data_in=`pet_byte_256' bits=mr_bits ;

sv_ip_display new: `pet_upper_3_display' data_in=`upper_3bits' title=`PET data shifted to upper 3 bits' render! ;

sv_ip_rescale new: lower_5bits data_in=`mr_ip' src_min=0 src_max=302 dst_min=0 dst_max=mr_max ;

sv_ip_display new: `mr_lower_5_display' data_in=`lower_5bits' title=`MR data compressed into lower 5 bits' lookup_table=`sawtooth' render! ;

sv_ip_or new: combine data_in=(`upper_3bits', `lower_5bits');

sv_ip_display new: display data_in=`combine' lookup_table=`sawtooth' title=`MR (5 bits) & PET (3 bits) fused' render! ;

SEE ALSO

sv_ip_filter, sv_ip, lookup_table, xwindow, xcolormap


Please send comments and suggestions to
consult@rpi.edu