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

 Respuesta aceptada

Image Analyst
Image Analyst el 29 de Mayo de 2012

0 votos

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 comentario

Image Analyst
Image Analyst el 1 de Jun. de 2012
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?

Iniciar sesión para comentar.

Más respuestas (1)

Tom Lane
Tom Lane el 1 de Jun. de 2012

0 votos

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,:)))

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 29 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by