i am trying to implement probality density function on an image but i can not understand how to calculate data, mu and sigma.here is my code is it right to take data as pixl value

1 visualización (últimos 30 días)
k = imread('2.jpg');
img2=rgb2gray(k);
sigma =?;
mu=?
pd = makedist('Normal',mu,sigma);
data = img2(I,j)
y = pdf(pd,data);
figure,
plot(data,y,'LineWidth',2)

Respuesta aceptada

Walter Roberson
Walter Roberson el 23 de Ag. de 2015
mu = mean2(img2);
sigma = std2(img2);
  4 comentarios

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Geometric Transformation and Image Registration 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