Error in finding histogram of an image having required bins range [0 255].

1 次查看(过去 30 天)
I am having an brain image. Following code is used to find histogram (Input image and histogram is attached):
I_1=niftiread('Brats18_2013_5_1_flair.nii.gz');
I=double(I_1);
[R C N]=size(I);
for i=100
img_1=I(:, :, i);
img=fliplr(imrotate(img_1,-90));
H=imhist(img)
end
But I am not getting desired histogram. Kindly provide the solution.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by