sv_ip_and_const(sv_ip) SunVision IP sv_ip_and_const(sv_ip)
NAME
sv_ip_and_const - perform bitwise and of an image with a
constant
DESCRIPTION
The sv_ip_and_const filter transforms its input into its
output by performing a bitwise and of each pixel in the
input with a constant.
SUPERCLASS
sv_ip_filter
INSTANCE VARIABLES
constant
is the value to and with the pixels of the input.
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_and_const new: and
data_in=`offset1'
constant= 127
;
sv_ip_display new: image3
data_in=`and'
title= `Offset -128 / And 127'
render!
;
sv_ip_add_const new: offset2
data_in=`and'
constant= 128
;
sv_ip_display new: image
data_in=`offset2'
title= `Offset -128 / And 127 / Offset +128'
render!
;
SEE ALSO
sv_ip_filter, sv_ip, sv_ip_abs, sv_ip_and, ip_and_const(3)
Please send comments and suggestions toconsult@rpi.edu