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

sv_ip_add_const(sv_ip) SunVision IP sv_ip_add_const(sv_ip)

NAME

sv_ip_add_const - add a constant value to each pixel of an image

DESCRIPTION

The sv_ip_add_const class transforms its input into its output by adding the value of its constant instance variable to all pixels of the input image.

SUPERCLASS

sv_ip_filter

INSTANCE VARIABLES

constant is the value to be added to each input pixel. The default is 0.

roi is currently ignored.

MESSAGES

No new messages.

EXAMPLE

mio_pgm new: car prefix=`gruppeb' compute_number_slices! slice=1 ;

mio_to_sv_ip new: ip data_in=`car' ;

sv_ip_display new: image1 data_in=`ip' title= `Original Data (neat car, eh?)' render! ;

sv_ip_add_const new: offset1 data_in=`ip' constant= -128 ;

sv_ip_abs new: abs data_in=`offset1' ;

sv_ip_display new: image3 data_in=`abs' title= `Offset -128 / Absolute Value' render! ;

sv_ip_add_const new: offset2 data_in=`abs' constant= 128 ;

sv_ip_display new: image4 data_in=`offset2' title= `Offset -128 / Absolute Value / Offset +128' render! ;

SEE ALSO

sv_ip_filter, sv_ip, sv_ip_add, ip_add_const(3)


Please send comments and suggestions to
consult@rpi.edu