B = std2(A) returns the scalar B, the standard deviation of the values in A. gpuarrayB = std2(gpuarrayA) performs the operation on a GPU. The input image is a gpuArray image. The output is a gpuArray scalar. This syntax requires the Parallel Computing Toolbox™.
B = std2(A)gpuarrayB = std2(gpuarrayA)
I = gpuArray(imread('liftingbody.png')); val = std2(I)