I am learning image processing, and everywhere people say that "convolution is commutative but correlation is not." (For example, see slides 19, 24, & 25 here) However, after searching I cannot find a good example that correlation is not commutative. In fact, it seems commutative to me.
Here's a simple 1-D example. If I have:
F = [1 2 3] H = [1 2 3 4 5 6 7 8 9]
Then F corr H would be:
[14 20 26 32 38 44 50]
(first element is 1x1 + 2x2 + 3x3 = 14, second element is 1x2 + 2x3 + 3x4 = 20, and so on.
And if I compute H corr F, it seems like I get the same array.
Can someone provide a simple example that shows that correlation is not commutative?
I tried searching online for different lecture PDFs, trying my own examples by hand and even asking Chat GPT. None were able to clearly explain why correlation isn't a commutative operation.