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.
render! is a synonym for display!.
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! ;