How does the imhist function work for RGB image?
6 次查看(过去 30 天)
显示 更早的评论
Hello everyone.
I looked up the use of imhist function. It plots the histogram for a grayscale image. But if the input is an RGB image, it still produces a histogram? Is it converting the RGB to grayscale and then showing the histogram?
And would it be technically correct to show the histogram for a RGB image this way? Thanks in advance!
0 个评论
采纳的回答
Image Analyst
2020-5-30
编辑:Image Analyst
2020-5-30
Did you try to look at the source code
>> edit imhist.m
Also, see attached demo. You might like 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!