Azzera filtri
Azzera filtri

Image comparing matlab

3 visualizzazioni (ultimi 30 giorni)
omar chavez
omar chavez il 2 Nov 2011
Hi, this is the first time Im using matlab and has been pretty neat so far. This semester we have been asked to do a little proyect.
I choose to do an image comparing program.
What I want to compare is the level of diference between the 2 matrix.
For example, I have a table with 3 figures. a circle, a triangle, a square and since this pictures are taken in a gray scale whenever I take one of the objects off and take another picture, know where the object is missing. And reproduce that part of the matrix where the object is missing
I wanna know if this is feasable or how complicated it is.

Risposte (1)

Image Analyst
Image Analyst il 2 Nov 2011
Just convert them to floating point, subtract them, and display them
imshow(single(image1) - single(image2), []);
It can be as simple as that. Or you could make it fancier if you want, such as applying colormaps, calling surf(), calculating the area of the difference, etc.
  2 Commenti
omar chavez
omar chavez il 3 Nov 2011
why is the last element [] for?
Walter Roberson
Walter Roberson il 3 Nov 2011
It indicates that automatic scaling of the image levels should be used so that the lowest value actually present will correspond to the first color in the color map, and the highest value actually present will correspond to the last color in the color map.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by