Emily
Emily

Reputation: 539

how to measure the similarity between images of different sizes

I want to measure the similarity between two images of different sizes, the images are represented by color moments feature, when I want to measure the similarity between these two images using euclidian distance I get the error: Error using ==> minus Matrix dimensions must agree. For example:

distance=norm(color_moments(img1) - color_moments(img2));

img1 and img2 have different sizes, by the result their color_moments vectors have also different sizes which makes the comparison impossible. How can I solve this?

Upvotes: 0

Views: 1096

Answers (1)

yar
yar

Reputation: 1905

Just resize the image with imresize

Upvotes: 1

Related Questions