R/xcorr2D_r.R
xcorr2D_r.Rd
This function calculates the 2D cross-correlation of two matrices `a` and `b` using compiled Fortran subroutine.
xcorr2D_r(a, b)
A matrix (2D array) of values.
A matrix representing the 2D cross-correlation of the input matrices.
Ahmed Homoudi
a <- matrix(c(1, 2, 3, 4), ncol = 2) b <- matrix(c(5, 6, 7, 8), ncol = 2) xcorr2D_r(a, b) #> [,1] [,2] [,3] #> [1,] 8 30 18 #> [2,] 23 70 39 #> [3,] 14 38 20