You are here : matlabImage Processingstdfilt

stdfilt() - Image Processing

J = stdfilt(I) returns the
array J, where each output pixel contains the standard
deviation of the 3-by-3 neighborhood around the corresponding pixel
in the input image I. I can
have any dimension. The output image J is the same
size as the input image I. For pixels on the borders of I, stdfilt uses
symmetric padding. In symmetric padding, the values of padding pixels
are a mirror reflection of the border pixels in I. J = stdfilt(I, NHOOD) calculates
the local standard deviation of the input image I,
where you specify the neighborhood in NHOOD. NHOOD is
a multidimensional array of zeros and ones where the nonzero elements
specify the neighbors. NHOOD's size must be odd
in each dimension. By default, stdfilt uses the
neighborhood ones(3). stdfilt determines
the center element of the neighborhood by floor((size(NHOOD)
+ 1)/2). gpuarrayJ = stdfilt(gpuarrayI,___) performs
the conversion on a GPU. The input image and the output image are
gpuArrays. This syntax requires the Parallel Computing Toolbox™.


J = stdfilt(I)J = stdfilt(I, NHOOD)gpuarrayJ = stdfilt(gpuarrayI,___)


I = imread('circuit.tif');
J = stdfilt(I); 
figure, imshow(J,[]);

Output / Return Value


Alternatives / See Also