MATLAB: Standard deviation per pixel in an image series

digital image processingimageanalyst

Let's say I have 2 images of size 3×3. I want to store the standard deviation of each pixel in a new matrix of size 3×3.
So if I have k images of same size, then I want to find the standard deviation of k entries per pixel and store that in a new matrix.

Best Answer

Save the images in a 3D array (say imageArray), such that imageArray(:,:,1) = Image1, imageArray(:,:,1) = Image2, ..., imageArray(:,:,k) = Imagek. Then you can calculate per pixel standard deviation using
std(imageArray, 3);
Related Question