lvconvolve(3)

LIBRARY ROUTINE
lvconvolve - Compute two-dimensional convolution of a pair of images

LIBRARY CALL
#include "vinclude.h"
int
lvconvolve(img1,img2)
struct xvimage *img1,*img2;

INPUT

OUTPUT

MODIFICATIONS
Scott Wilson

DESCRIPTION
lvconvolve computes the two-dimensional spatial convolution of two images. If either of the files is of TYP_FLOAT, the output will be in that format, otherwise the output will be TYP_4_BYTE.

Edge problems are handled by truncating that part of the kernel that is off of the image array.

img1 is a pointer to an xvimage structure containing the image to be convolved. img1 is also used to hold the result of the convolved image. This is done to save space, but you must be careful not to overwrite important data.

SEE ALSO
vconvolve(1), intro(3), vipl(3), verror(3), vutils(3) lvfft(3),vfttmul(3)

RESTRICTIONS
vconvolve will not operate on VFF_TYP_COMPLEX images. Accumulator error may occur when convolving two large images.

AUTHOR
Richard Krukar

COPYRIGHT
Copyright 1991, University of New Mexico. All rights reserved.