how to Matlab function to calculate probability density function of n image?
4 次查看(过去 30 天)
显示 更早的评论
I want to calculate the probability density function of an image. can you tell me what is the matlab function
0 个评论
采纳的回答
Image Analyst
2014-6-27
Assuming you mean the pdf of gray levels, use imhist().
4 个评论
Image Analyst
2018-9-18
pdf is not an image so you don't use imshow(). It's a vector so use plot() or bar():
plot(binLocations, pdf, 'b-', 'LineWidth', 2);
grid on;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!