kernel_new width height
Create a new Kernel of the specified width and height and return a pointer to it.
kernel_free kern
Free the Kernel pointed to by kern.
kernel_set_values k values
Set the values of kernel k with the values in list values. values is a list of integers in row major order.
kernel_set_div_factor k divfactor
Set the divfactor slot of Kernel k.
kernel_set_offset k offset
Set the offset slot of Kernel k.
kernel_apply kern src dest
Apply convolution kernel kern to src and put the result into dest. The kernel will be applied only where it can entirely overlap the input; thus, the output will be smaller in each dimension by the corresponding dimension of the kernel. More precisely,
width(dest) = width(src) - width(kern) + 1 height(dest) = height(src) - height(kern) + 1For example, if kern is a 3x3 kernel, and src is a 640x480 image, a region of size 638x478 in dest will be affected. The function byte_extend can be used to extend src so that a larger region in dest will be written.
kernel_compose src1 src2 dest
Compose src1 and src2, writing the result into dest. dest must have dimensions:
width(dest) = width(src1) + width(src2) - 1 height(dest) = height(src1) + height(src2) - 1
kernel_get_width kern
kernel_get_height kern
kernel_get_div_factor kern
kernel_get_offset kern
Return the appropriate attribute of the kernel
kernel_get_values kern
Return the values of the kernel as a list of lists which are the rows of the kernel kern.
Last updated : Saturday, November 14, 1998, 07:50 PM