Image processing help

How to compare two images ?

1 Comment

Image comparison is a very wide field and to answer the question one needs two example pictures.

Answers (2)

Arturo Moncada-Torres
Arturo Moncada-Torres on 23 May 2011

0 votes

Indeed, I agree with Andreas Goser: image comparison is a very wide field. However, as a first approach, a very simple but always useful and powerful way of comparing two images is comparing their histograms.
doc imhist
Just remember that for a B&W image, you will get the histogram of the levels of gray. If you have an RGB image, you need to decompose it in each of the three layers (red, green, and blue) and obtain the histogram of each of them.
Hope it helps!

0 votes

Well you have asked a real broad question :)
Arturo has mentioned you a good way of comparing two images.
You can also try correlation approach to compare two images.

This question is closed.

Asked:

on 7 Feb 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!