histogram from binary image
Show older comments
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);
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!