Finding the difference between two images algorithm.
Mostra commenti meno recenti
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 Commenti
Celine Hajjar
il 28 Lug 2018
What do you intend to do exactly? do you want to calculate the difference between two pixels with the same coordinates?
Rik
il 28 Lug 2018
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
il 29 Lug 2018
Risposte (2)
Image Analyst
il 28 Lug 2018
0 voti
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 Commenti
shay afuta
il 29 Lug 2018
Image Analyst
il 29 Lug 2018
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
il 21 Apr 2021
0 voti
please anyone help me ...which algorithm is best for fake currency detection
2 Commenti
Categorie
Scopri di più su Image Segmentation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!