MATLAB: Mu and sigma for every pixel

evfitmusigma

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

Best Answer

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.