# Are there any good “conceptual distances” for comparing two images?

I want to define some distances to use over an image, which I create.

I think I need to define two different "distances".

1. The first distance should be the most robustness preserving in compare to the original image.

2. The second one should would be the most transparency preserving in compare to the
original image.

## For example:

Let $I_1, I_2$ and $I_3$ be images, $I_1$ is the original and $I_2, I_3$ are some similar images:

I would like to define a metric or some distance so a and b will holds:

a. $|I1 -I2| > |I_1 -I_3| <=> I_2$ is more robustness preserving then $I_3$ in compare to
the origin $I_1$.

b. $|I_1 -I_2| > |I_1 -I_3| <=> I_2$ is more transparency preserving then $I_3$ in compare to the origin $I_1$.

as I said the distance in a. and b. don't have to be the same at all.

I saw this post but it didn't help me alot, it may help you to find a good answer:

What distance metric can I use for comparing images?

• Image processing isn't my thing, so maybe I'm just ignorant of the terms, but can you define "robustness-preserved" and "transparency-preserved?" – Jason R Jan 19 '12 at 15:19

## 1 Answer

Ok, I read the question posted in your link, so forget about MSE or SSIM. What you can do is define a specific distance for the particular type of data you are using. For example, if you are using video data, depending on what you are most interested in, you can define distance measure based on the average shot length, keyframe colour histogram, average motion in a shot, and so on. If you are working on a database of face images, you can use e.g. PCA+eigenfaces to project each image on a N-dimensional space and compute an euclidean distance on that space; if you are working with e.g. flower pictures you can define a distance based on edge + colour information...

Here´s my previous answer:

It´s not really clear to me what you mean for robustness/transparency, to be honest.

If you want to check which one of I_2 and I_3 is more similar to I_1 a simple way is to use compute the mean square error, defined as the sum of the squares of all the pixels in the image, normalized for the total # of pixels