M-File Help: ivar | View code for ivar |
Pixel window statistics
out = ivar(im, se, op) is an image where each output pixel is the specified statistic over the pixel neighbourhood indicated by the structuring element se which should have odd side lengths. The elements in the neighbourhood corresponding to non-zero elements in se are packed into a vector on which the required statistic is computed.
The operation op is one of:
'var' | variance |
'kurt' | Kurtosis or peakiness of the distribution |
'skew' | skew or asymmetry of the distribution |
out = ivar(im, se, op, edge) as above but performance at edge pixels can be controlled. The value of edge is:
'border' | the border value is replicated (default) |
'none' | pixels beyond the border are not included in the window |
'trim' | output is not computed for pixels whose window crosses the border, hence output image had reduced dimensions. |
'wrap' | the image is assumed to wrap around |
© 1990-2012 Peter Corke.