2-D convolution
Compute the two-dimensional convolution of two matrices.
conv2(a, b, shape = c("full", "same", "valid"))
a, b |
Input matrices, coerced to numeric. |
shape |
Subsection of convolution, partially matched to:
|
Convolution of input matrices, returned as a matrix.
Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.
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")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.