Manually compute histrogram and display using bar function,

1 回表示 (過去 30 日間)
Ali
Ali 2014 年 10 月 20 日
回答済み: Image Analyst 2014 年 10 月 20 日
write function myhist to manually compute the histogram of grayscale image and display the histgoram using bar function
  2 件のコメント
Rick Rosson
Rick Rosson 2014 年 10 月 20 日
What have you tried so far? Please post your code and ask specific questions if you need help.

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2014 年 10 月 20 日
Hint: Use a for loop
[rows, columns, numberOfColorChannels] = size(grayImage);
for col = 1 : columns
for row = 1 : rows
grayLevel = grayImage(row,..............
Sounds like a homework problem so I won't do the whole thing for you. This should be more than enough to let you finish it.

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by