Вопрос

If I'm taking the correlation between two images as described in the attached formula:


Correlation


Which is taken from the following online computer vision textbook: Szelski page 386.

This function does not seem like it would ever be reliable, since if one of your images is brighter than the other, the correlation would be higher than if the images are identical. For instance, take a look at these examples printed on a white board:

Perfect Match

enter image description here

As you can see the brighter image has a better correlation with the first image than an identical copy of the first image. What am I doing wrong?

Это было полезно?

Решение

I guess what you're looking for is the normalized cross-correlation, where the values are subtracted by the mean intensity and then divided by the standard deviation of the intensity.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top