| Image Processing Toolbox | ![]() |
Perform N-dimensional convolution
Syntax
C = convn(A,B)
C = convn(A,B,shape)
Description
C = convn(A,B) computes the N-dimensional convolution of matrices A and B.
C = convn(A,B,shape) returns a subsection of the N-dimensional convolution, as specified by the shape parameter. shape is a string with one of these values:
'full' (the default) returns the full convolution.'same' returns the central part of the convolution of the same size as A. 'valid' returns only those parts of the convolution that are computed without zero-padded edges.Class Support
The input matrices A and B can be of class double or of any integer class. The output matrix C is of class double.
Remarks
convn is a function in MATLAB.
See Also
| convmtx2 | corr2 | ![]() |