Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Measure similarity between two images with the same size

Hello, I meet a problem how to measure the similarity between two image.

Though there are some solutions in the following link, they can't solve my problem.

https://answers.opencv.org/question/58061/measure-similarity-between-two-image/

It seems that (normalized) cross correlation is to find the best match of a small image from a big one. What's worse, it can get a maximal score in any case, even when there is no similar region in the big image.

Histogram comparison is too simple to distinguish different regions. In my case, all results are 0.99 … Maybe it's because the differences between them are really small. But at least we humans can see whether they are similar or not easily. So I'm looking up for better methods.

As for feature point matching, the result are really poor when there are ambiguities.

So, how can we measure similarity between two images with the same size?

Thank you very much!

Measure similarity between two images with the same size

Hello, I meet a problem how to measure the similarity between two image.

Though there are some solutions in the following link, they can't solve my problem.

https://answers.opencv.org/question/58061/measure-similarity-between-two-image/

It seems that (normalized) cross correlation is to find the best match of a small image from a big one. What's worse, it can get a maximal score in any case, even when there is no similar region in the big image.

Histogram comparison is too simple to distinguish different regions. In my case, all results are 0.99 … Maybe it's because the differences between them are really small. But at least we humans can see whether they are similar or not easily. So I'm looking up for better methods.

As for feature point matching, the result are really poor when there are ambiguities.

So, how can we measure similarity between two images with the same size?

Thank you very much!

Here i find an useful tool.

https://deepai.org/machine-learning-model/image-similarity

But I want to search for some source code. It's very nice if the code is based on opencv (images with Mat format).

Measure similarity between two images with the same size

Hello, I meet a problem how to measure the similarity between two image.

Though there are some solutions in the following link, they can't solve my problem.

https://answers.opencv.org/question/58061/measure-similarity-between-two-image/

It seems that (normalized) cross correlation is to find the best match of a small image from a big one. What's worse, it can get a maximal score in any case, even when there is no similar region in the big image.

Histogram comparison is too simple to distinguish different regions. In my case, all results are 0.99 … Maybe it's because the differences between them are really small. But at least we humans can see whether they are similar or not easily. So I'm looking up for better methods.

As for feature point matching, the result are really poor when there are ambiguities.

So, how can we measure similarity between two images with the same size?

Thank you very much!

Here i I find an useful tool.

https://deepai.org/machine-learning-model/image-similarity

But I want to search for some source code. It's very nice if the code is based on opencv (images with Mat format).

Measure similarity between two images with the same size

Hello, I meet a problem how to measure the similarity between two image.

Though there are some solutions in the following link, they can't solve my problem.

https://answers.opencv.org/question/58061/measure-similarity-between-two-image/

It seems that (normalized) cross correlation is to find the best match of a small image from a big one. What's worse, it can get a maximal score in any case, even when there is no similar region in the big image.

Histogram comparison is too simple to distinguish different regions. In my case, all results are 0.99 … Maybe it's because the differences between them are really small. But at least we humans can see whether they are similar or not easily. So I'm looking up for better methods.

As for feature point matching, the result are really poor when there are ambiguities.

So, how can we measure similarity between two images with the same size?

Thank you very much!

Here I find an useful tool.

https://deepai.org/machine-learning-model/image-similarity

But I want to search for some source code. It's very nice if the code is based on opencv (images with Mat format).

Acturally my images are like the following ones.

image description Image 1

image description Image 2

image description Image3

I need to compare image 1 with image 2 and image 3, and find that image 2 (instead of image 3) is more similar to image 1.

Measure similarity between two images with the same size

Hello, I meet a problem how to measure the similarity between two image.

Though there are some solutions in the following link, they can't solve my problem.

https://answers.opencv.org/question/58061/measure-similarity-between-two-image/

It seems that (normalized) cross correlation is to find the best match of a small image from a big one. What's worse, it can get a maximal score in any case, even when there is no similar region in the big image.

Histogram comparison is too simple to distinguish different regions. In my case, all results are 0.99 … Maybe it's because the differences between them are really small. But at least we humans can see whether they are similar or not easily. So I'm looking up for better methods.

As for feature point matching, the result are really poor when there are ambiguities.

So, how can we measure similarity between two images with the same size?

Thank you very much!

Here I find an useful tool.

https://deepai.org/machine-learning-model/image-similarity

But I want to search for some source code. It's very nice if the code is based on opencv (images with Mat format).

Acturally my images are like the following ones.

image description Image 1

image description Image 2

image description Image3Image 3

I need to compare image 1 with image 2 and image 3, and find that image 2 (instead of image 3) is more similar to image 1.