how to Matlab function to calculate probability density function of n image?
4 views (last 30 days)
Show older comments
Jhilam Mukherjee
on 27 Jun 2014
Commented: Alessandro Bile
on 19 Sep 2018
I want to calculate the probability density function of an image. can you tell me what is the matlab function
0 Comments
Accepted Answer
Image Analyst
on 27 Jun 2014
Assuming you mean the pdf of gray levels, use imhist().
4 Comments
Image Analyst
on 18 Sep 2018
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;
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!