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 (최근 30일)
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)

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 23일
mu = mean2(img2);
sigma = std2(img2);
  댓글 수: 4
bushra mughal
bushra mughal 2015년 8월 29일
actualy I am trying to calculate probability density function for img2

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by