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

sv_ip_convolve(sv_ip) SunVision IP sv_ip_convolve(sv_ip)

NAME

sv_ip_convolve - convolve an image with a kernel

DESCRIPTION

The sv_ip_convolve class transforms its input to its output by convolving it with a named convolution kernel.

SUPERCLASS

sv_ip_filter

INSTANCE VARIABLES

kernel is the name of an sv_ip_kernel object.

roi is currently ignored.

MESSAGES

No new messages.

EXAMPLE

string new: `title' string_format=`Convolution using 1 kernel' = `sobel_col' ;

sv_ip_display new: car_image data_in=`car_ip' title= `Original data' render! ;

environment new: sunvision variable="SUNVISION" ;

string new: kernel_dir = [sunvision value?] + "/ip/kernel"; string new: `first_kernel' = kernel_dir + `/' + `sobel_col';

sv_ip_kernel new: kernel filename= first_kernel ;

sv_ip_convolve new: gauss3 data_in=`car_ip' kernel=`kernel' ;

sv_ip_display new: image data_in=`gauss3' title= title render! ;

motif create!;

motif_file_selection_box new: fsb parent=motif @ `directory' : kernel_dir @ `pattern' : "*" ok_action=`render' create! ;

actions new: `render' tick_actions=` kernel destroy! filename=[fsb @ `dirSpec' string_value?] ;

title = [fsb @ `dirSpec' string_value?] - [sunvision value?] - `/ip/kernel/' ; object # [image window?] store_name: title; image render!; ' ;

motif on! start!;

SEE ALSO

sv_ip_filter, sv_ip, sv_ip_kernel, ip_convolve(3)


Please send comments and suggestions to
consult@rpi.edu