How to plot the histogram of a volume using imhist?
Show older comments
I have array of TIFF images. I have stacked them to make a volume. How can I plot the histogram of the volume in MATLAB? The function "imhist" expects its input to be two-dimensional.
I have also tried to plot the histogram of individual TIFFs and consolidate, but in vain.
Here is the code I tried to consolidate the histograms:
counter = 0;
for i = 1:numel(image_files)
[count, x] = imhist(vol(:,:,i));
counter = count + counter
end;
Is/are there any other ways I could plot the histogram of a volume in MATLAB?
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!