Changing width of imhist bins
4 次查看(过去 30 天)
显示 更早的评论
Hi After issuing histeq my histogram is very spread. it is more like bunch of lines with very small width. I would like to know is there any way to increase width of each bins in histogram command imhist.
0 个评论
采纳的回答
Image Analyst
2014-7-18
The second argument is the number of bins, which essentially means the bin width.
2 个评论
Image Analyst
2014-7-20
Get your histogram with imhist()
[counts, grayLevels] = imhist(grayImage, 256);
Then plot with thick bars (width of 1)
bar(grayLevels, counts, 'BarWidth', 1);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!