Manually compute histrogram and display using bar function,
1 次查看(过去 30 天)
显示 更早的评论
write function myhist to manually compute the histogram of grayscale image and display the histgoram using bar function
2 个评论
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
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.
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!