Comparing RGB pixel values of two .tiff images
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two TIFF files that represent a region but for two separate years. The TIFF files were downloaded as 1 band, but I converted then to RGB (3 band) via ArcGIS. I have extracted the RGB channels using the code below for both images:
R1=im1(:,:,1);
G1=im1(:,:,2);
B1=im1(:,:,3);
So now that I have 3 matrices for each image I want to compare the RGB values between the two images (two years). What would be the most efficient way to compare RGB values by pixel between these two images?
0 Kommentare
Antworten (2)
Image Analyst
am 3 Mär. 2016
What does "compare" mean to you? Find the difference? See if they're equal?
diffImage = double(R1) - double(R2);
subplot(1,2,1);
imshow(diffImage, []);
subplot(1,2,2);
notEqual = R1 ~= R2;
imshow(notEqual);
Siehe auch
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!