Effacer les filtres
Effacer les filtres

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

6 vues (au cours des 30 derniers jours)
I want to calculate the probability density function of an image. can you tell me what is the matlab function

Réponse acceptée

Image Analyst
Image Analyst le 27 Juin 2014
Assuming you mean the pdf of gray levels, use imhist().
  4 commentaires
Image Analyst
Image Analyst le 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;
Alessandro Bile
Alessandro Bile le 19 Sep 2018
Thank you for your help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by