mu and sigma for every pixel

how to calculate mu and sigma for every pixel of a frame of a video or help me in using evfit for this situation

 채택된 답변

Image Analyst
Image Analyst 2012년 5월 29일

0 개 추천

mu is the pixel value. sigma is zero.
mu = mean(rgbImage(row, column, colorChannel)); % Same as the pixel value.
sigma = std(rgbImage(row, column, colorChannel)); % This will be zero since it's just one value.
I never heard of evfit. You can reword your question if you didn't fully explain the situation the first time.

댓글 수: 1

Image Analyst
Image Analyst 2012년 6월 1일
You accepted? Do you realize that the code above is basically a joke and was just meant to prod you into a better, more accurate description of what you really need?

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

추가 답변 (1개)

Tom Lane
Tom Lane 2012년 6월 1일

0 개 추천

I similarly don't understand, but if your video is a 3-D array with V(i,j,:) representing pixel (i,j) for all frames, then this should do it:
params = evfit(squeeze(V(i,j,:)))

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2012년 5월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by