如果过滤器在数字图像处理中是对称的,则执行卷积或相关将是相同的。为什么?

performing convolution or correlation will be same if the filter is symmetric in Digital Image Processing. Why?

卷积和相关在大多数情况下是不同的,并产生不同的输出。但是当用于卷积或相关的滤波器是对称的时,我们会得到相同的输出。为什么?是什么 属性 使两者的输出相同?

来自维基:

Some features of convolution are similar to cross-correlation: for real-valued functions, of a continuous or discrete variable, it differs from cross-correlation only in that either f(x) or g(x) is reflected about the y-axis; thus it is a cross-correlation of f(x) and g(−x), or f(−x) and g(x).

如果g(x)==g(-x),即函数是偶数(对称),则相关性等于卷积。