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

sv_ip_and(sv_ip) SunVision IP sv_ip_and(sv_ip)

NAME

sv_ip_and - compute the bitwise and of two input images

DESCRIPTION

The sv_ip_and filter transforms its two inputs into its output by computing the bitwise and of the pixels in its inputs.

SUPERCLASS

sv_ip_filter

INSTANCE VARIABLES

roi is currently ignored.

MESSAGES

No new messages.

EXAMPLE

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

sv_ip_display new: displaymr data_in=`mr_ip' title=`MR data' render! ;

vector new: level1 = (0x1); sv_ip_contour new: pet_contour_1 data_in=`pet_byte_256' levels=`level1' ; sv_ip_and_const new: pet_and_1 data_in=`pet_contour_1' constant=0x1f ;

sv_ip_display new: display1 data_in=`pet_contour_1' title= `PET contour value == 17' render! ;

vector new: level3 = (0x3); sv_ip_contour new: pet_contour_3 data_in=`pet_byte_256'

levels=`level3' ; sv_ip_and_const new: pet_and_3 data_in=`pet_contour_3' constant=0x3f ;

sv_ip_display new: display3 data_in=`pet_contour_3' title= `PET contour value == 51' render! ;

vector new: level5 = (0x5); sv_ip_contour new: pet_contour_5 data_in=`pet_byte_256' levels=`level5' ; sv_ip_and_const new: pet_and_5 data_in=`pet_contour_5' constant=0x5f ;

sv_ip_display new: display5 data_in=`pet_contour_5' title= `PET contour value == 85' render! ;

vector new: level7 = (0x7); sv_ip_contour new: pet_contour_7 data_in=`pet_byte_256' levels=`level7' ; sv_ip_and_const new: pet_and_7 data_in=`pet_contour_7' constant=0x7f ;

sv_ip_display new: display7 data_in=`pet_contour_7' title= `PET contour value == 119' render! ;

vector new: level9 = (0x9); sv_ip_contour new: pet_contour_9 data_in=`pet_byte_256' levels=`level9' ; sv_ip_and_const new: pet_and_9 data_in=`pet_contour_9' constant=0x9f ;

sv_ip_display new: display9 data_in=`pet_contour_9' title= `PET contour value == 153' render! ;

vector new: levelb = (0xb); sv_ip_contour new: pet_contour_b data_in=`pet_byte_256' levels=`levelb' ; sv_ip_and_const new: pet_and_b data_in=`pet_contour_b' constant=0xbf ;

sv_ip_display new: displayb data_in=`pet_contour_b' title= `PET contour value == 187' render! ;

vector new: leveld = (0xd); sv_ip_contour new: pet_contour_d data_in=`pet_byte_256' levels=`leveld' ; sv_ip_and_const new: pet_and_d data_in=`pet_contour_d' constant=0xdf ;

sv_ip_display new: displayd data_in=`pet_contour_d' title= `PET contour value == 221' render! ;

vector new: levelf = (0xf); sv_ip_contour new: pet_contour_f data_in=`pet_byte_256' levels=`levelf' ; sv_ip_and_const new: pet_and_f data_in=`pet_contour_f' constant=0xff ;

sv_ip_display new: displayf data_in=`pet_contour_f' title= `PET contour value == 255' render! ;

sv_ip_threshold new: mr_mask data_in=`mr_ip' lo_value= 127.5 hi_value= 127.5 invert= 1 ;

sv_ip_and new: masked_mr_ip data_in=(`mr_ip', `mr_mask');

sv_ip_rescale new: lower_bits data_in=`masked_mr_ip' src_min=0 src_max=127 dst_min=0 dst_max=mr_max ;

sv_ip_or new: pet_or_1 data_in=(`pet_and_1', `pet_and_3'); sv_ip_or new: pet_or_2 data_in=(`pet_or_1', `pet_and_5'); sv_ip_or new: pet_or_3 data_in=(`pet_or_2', `pet_and_7'); sv_ip_or new: pet_or_4 data_in=(`pet_or_3', `pet_and_9'); sv_ip_or new: pet_or_5 data_in=(`pet_or_4', `pet_and_b'); sv_ip_or new: pet_or_6 data_in=(`pet_or_5', `pet_and_d'); sv_ip_or new: pet_or_7 data_in=(`pet_or_6', `pet_and_f'); sv_ip_or new: fused_image data_in=(`pet_or_7', `lower_bits');

sv_ip_display new: display data_in=`fused_image' lookup_table=`sawtooth' title=`PET contours fused with MR data' render! ;

SEE ALSO

sv_ip_filter, sv_ip, sv_ip_or, sv_ip_and_const, ip_and(3)


Please send comments and suggestions to
consult@rpi.edu