histogram from binary image
Ältere Kommentare anzeigen
Hi, I'am calculating the histogram from a binary image, I am using the following code, but my histogram is empty, besides the grayscale turns out a proper histogram. Can you kindly help me? Thanks a lot.
I = imread('test.png');
figure;
[ counts , binLocations ] = imhist(I,2);
figure;
imhist(I);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Histograms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
