Info

This question is closed. Reopen it to edit or answer.

Image processing help

7 views (last 30 days)
Jerry James
Jerry James on 7 Feb 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
How to compare two images ?
  1 Comment
Andreas Goser
Andreas Goser on 7 Feb 2011
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
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!

Harsha Vardhan Rao  Avunoori
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.

Community Treasure Hunt

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

Start Hunting!