stdfilt
Local standard deviation of image
Description
performs standard deviation filtering of image J
= stdfilt(I
)I
and returns
the filtered image J
. The value of each output pixel is the
standard deviation of the 3-by-3 neighborhood around the corresponding input pixel.
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
.
Examples
Input Arguments
Output Arguments
Tips
The
double
arrayJ
contains standard deviation values, which can exceed the range [0, 1]. Because some Image Processing Toolbox™ functions expect inputs of typedouble
to be in the range [0, 1], to passJ
as an input argument to these functions, use therescale
function to rescale the values ofJ
to [0, 1].If the image contains
Inf
s orNaN
s, then the behavior ofstdfilt
is undefined. Propagation ofInf
s orNaN
s might not be localized to the neighborhood around theInf
orNaN
pixel.