Image comparing matlab
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
回答 (1 件)
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 件のコメント
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!