Cross-Correlation Explorer
C(τ) = ∫ f(x) g(x − τ) dx
Correlation: 0
1. Input and sliding kernel
Input f(x)Kernel g(x−τ)
2. Pointwise product (shaded area = integral)
3. Cross-correlation output
C(u,v) = ∬ f(x,y) g(x−u,y−v) dx dy
C(u,v) = 0
Drag the red crosshair on the input or output heatmap, or use the sliders.
1. Input f(x,y)
Red crosshair: kernel center.
2. Shifted kernel g(x−u,y−v)
The kernel translates without flipping.
3. Pointwise product
Brighter areas contribute more to the integral.
4. Correlation feature map C(u,v)
Crosshair: current output position.
CNN connection: Sliding, multiplying and integrating produces a feature map. A discrete CNN replaces the double integral with a double sum.