how can i plot a histogram of pixel values?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sanaz
am 20 Jul. 2014
Kommentiert: sanaz
am 21 Jul. 2014
i'm working on a simulation and it contains a histogram of pixel differences for original image and marked one. but i do not understand this plot (that comes in attachment). can anybody please review it and guide me on that?
2 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Jul. 2014
Bearbeitet: Image Analyst
am 20 Jul. 2014
Your plot shows that there is a pixel-to-pixel difference (same location) of anywhere from -4 to +0.5 gray levels.
diffImage = double(image1) - double(image2);
minValue = min(diffImage(:));
maxValue = max(diffImage(:));
edges = linspace(minValue, maxValue, 500); % 500 bins
counts = histc(diffImage(:));
plot(edges, counts, 'b-');
grid on;
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!