필터 지우기
필터 지우기

Image comparing matlab

조회 수: 3 (최근 30일)
omar chavez
omar chavez 2011년 11월 2일
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.

답변 (1개)

Image Analyst
Image Analyst 2011년 11월 2일
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
omar chavez
omar chavez 2011년 11월 3일
why is the last element [] for?
Walter Roberson
Walter Roberson 2011년 11월 3일
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.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by