| Image Processing Toolbox | Search  Help Desk |
| convmtx2 | See Also |
Compute two-dimensional convolution matrix
Syntax
T = convmtx2(H,m,n) T = convmtx2(H,[m n])
Description
T = convmtx2(H,m,n) or T = convmtx2(H,[m n]) returns the T for the matrix H. If X is an m-by-n matrix, then reshape(T*X(:),size(H)+[m n]-1) is the same as conv2(X,H).
Class Support
The inputs are all of classdouble. The output matrix T is of class sparse. The number of nonzero elements in T is no larger than prod(size(H))*m*n.
See Also
conv2
convmtx in the Signal Processing Toolbox User's Guide