conv2 {gsignal} | R Documentation |
2-D convolution
Description
Compute the two-dimensional convolution of two matrices.
Usage
conv2(a, b, shape = c("full", "same", "valid"))
Arguments
a , b |
Input matrices, coerced to numeric. |
shape |
Subsection of convolution, partially matched to:
|
Value
Convolution of input matrices, returned as a matrix.
Author(s)
Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
See Also
Examples
a <- matrix(1:16, 4, 4)
b <- matrix(1:9, 3,3)
cnv <- conv2(a, b)
cnv <- conv2(a, b, "same")
cnv <- conv2(a, b, "valid")
[Package gsignal version 0.3-5 Index]