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

sv_ip_zoom(sv_ip) SunVision IP sv_ip_zoom(sv_ip)

NAME

sv_ip_zoom - magnify an image

DESCRIPTION

The sv_ip_zoom object scales the input image in the x and y dimension by the xfactor and yfactor scales, with offsets xoff and yoff.

SUPERCLASS

sv_ip_filter

INSTANCE VARIABLES

xoff Offset for the x scaling.

yoff Offset for the y scaling.

xfactor Amount to scale in the x direction.

yfactor Amount to scale in the y direction.

interp_code Type of interpolation to perform. See the SunVision IP reference manual for details.

MESSAGES

None.

EXAMPLE

mio_pgm new: pet prefix=`norm1_cbf' compute_number_slices! slice=1 ;

mio_to_sv_ip new: pet_ip data_in=`pet' ;

sv_ip_copy new: pet_float data_in=`pet_ip' data_type= ipFLOAT ;

sv_ip_add_const new: pet_offset data_in=`pet_float' constant= -22 data_type = ipFLOAT ;

sv_ip_mul_const new: pet_mult data_in=`pet_offset' constant= 13.8857 data_type = ipFLOAT ;

sv_ip_rescale new: pet_float_rescaled data_in=`pet_mult' src_min=0 src_max=3235.368164 dst_min=0 dst_max=255 ;

sv_ip_copy new: pet_byte data_in=`pet_float_rescaled' data_type= ipBYTE ;

sv_ip_rescale new: pet_byte_rescaled data_in=`pet_byte' src_min=0 src_max=255 dst_min=0 dst_max=pet_max ;

sv_ip_zoom new: pet_byte_256 data_in=`pet_byte_rescaled' xoff= 0 yoff= 0 xfactor= 2 yfactor= 2 dimensions=(256,256) ;

SEE ALSO

sv_ip_filter, sv_ip


Please send comments and suggestions to
consult@rpi.edu