Changing width of imhist bins

4 ビュー (過去 30 日間)
chess
chess 2014 年 7 月 18 日
コメント済み: Image Analyst 2014 年 7 月 20 日
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.

採用された回答

Image Analyst
Image Analyst 2014 年 7 月 18 日
The second argument is the number of bins, which essentially means the bin width.
  2 件のコメント
chess
chess 2014 年 7 月 19 日
I meant the width of each line not the distance between them, the second argument of imhist is 'n' which tells you how many lines you want to see.
Image Analyst
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 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by