Activity (Process)

Steps for a Two-Dimensional Sliding-Window Correlation

To compute a two-dimensional cross-correlation, place the kernel over the top-left corner of the input array first. For each valid position, multiply each kernel entry by the corresponding input entry under it, then add those products to get one output value. Shift the kernel one step to the right and repeat across the row. After finishing a row, move the kernel down by one step and continue until every valid placement has been processed. The full set of sums forms the output array.

Image 0

0

1

Updated 2026-08-12

Tags

Data Science

D2L

Dive into Deep Learning @ D2L

Machine Learning Yearning @ DeepLearning.AI

Deep Learning

Machine Learning

Supervised Learning