iconv
Image cross-correlation
C = iconv(im1, im2, options) is the cross-correlation of images im1 and im2. The
smaller image is taken as the kernel and correlated with the larger image.
Options
| 'same' | output image is same size as largest input image (default) |
| 'full' | output image is larger than the input image |
| 'valid' | output image is smaller than the input image, and contains only
valid pixels |
Notes
- If the larger image is color (has multiple planes) the kernel is applied to
each plane, resulting in an output image with the same number of planes.
- The kernel must be greyscale.
- This function is a convenience wrapper for the MATLAB function CONV2.
- Works for double, uint8 or uint16 images. Image and kernel must be of
the same type and the result is of the same type.
- This function is badly named, it peforms cross-correlation not
convolution.
See also
conv2
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.