Finding the difference between two images algorithm.
이전 댓글 표시
Hello,I am trying to write code to find the difference between two similar images. My way was: make them gray (with rgb2gray) subtract and then add threshold) but it gave me nothing.
The way I am working isnt correct ? maybe I am missing something ?
댓글 수: 3
Celine Hajjar
2018년 7월 28일
What do you intend to do exactly? do you want to calculate the difference between two pixels with the same coordinates?
Rik
2018년 7월 28일
There is a lot that can go wrong here. We can guess what went wrong, but the best way is if you upload example images and the code you were using.
shay afuta
2018년 7월 29일
답변 (2개)
Image Analyst
2018년 7월 28일
0 개 추천
Subtracting will clip negative values at zero - not good! Cast to double before that.
Try the built-in functions immse() or psnr().
If you want to do it yourself, check out imabsdiff().
댓글 수: 2
shay afuta
2018년 7월 29일
Image Analyst
2018년 7월 29일
Are you sure you're displaying the difference image with [] - otherwise it will do that.
differenceImage = abs(double(im1gray)-double(im2gray));
imshow(differenceImage, []);
Savita Hanchinal
2021년 4월 21일
0 개 추천
please anyone help me ...which algorithm is best for fake currency detection
댓글 수: 2
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!