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)
Mostrar comentarios más antiguos
bushra mughal
el 23 de Ag. de 2015
Comentada: bushra mughal
el 29 de Ag. de 2015
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)
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de Ag. de 2015
mu = mean2(img2);
sigma = std2(img2);
4 comentarios
Walter Roberson
el 24 de Ag. de 2015
My theory is that you are trying to fit a Normal Distribution to a histogram of the gray levels. http://www.mathworks.com/help/stats/histfit.html but also http://www.mathworks.com/matlabcentral/answers/44962#answer_55073
Más respuestas (0)
Ver también
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!