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

8 Ansichten (letzte 30 Tage)
I want to calculate the probability density function of an image. can you tell me what is the matlab function

Akzeptierte Antwort

Image Analyst
Image Analyst am 27 Jun. 2014
Assuming you mean the pdf of gray levels, use imhist().
  4 Kommentare
Image Analyst
Image Analyst am 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;

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by