Skip to main content

correlate2d

Function correlate2d 

Source
pub fn correlate2d(
    image: &Array2<f64>,
    kernel: &Array2<f64>,
    border: Border,
) -> Result<Array2<f64>, ErrorsJSL>
Expand description

2D cross-correlation (the kernel is not flipped): out[r, c] = Σ image[r+i, c+j] · kernel[i+hr, j+hc].