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

4 visualizaciones (últimos 30 días)
I want to calculate the probability density function of an image. can you tell me what is the matlab function

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by