how to Matlab function to calculate probability density function of n image?

6 次查看(过去 30 天)
I want to calculate the probability density function of an image. can you tell me what is the matlab function

采纳的回答

Image Analyst
Image Analyst 2014-6-27
Assuming you mean the pdf of gray levels, use imhist().
  4 个评论
Image Analyst
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 CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by