Spatial filter

From Eigenvector Research Documentation Wiki
Revision as of 12:44, 20 January 2009 by imported>Scott (New page: ===Purpose=== Image filtering ===Synopsis=== :xf = spatial_filter(x,win,options) ===Description=== Note that to allow robust statistics the filter is based on a moving window (or box),...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Image filtering

Synopsis

xf = spatial_filter(x,win,options)

Description

Note that to allow robust statistics the filter is based on a moving window (or box), and is slow compared to other filter methods.

Inputs

  • x = image data class 'double' or 'dataset'. If 'dataset' it must x.type=='image'. If 'double' it must be MxNxP (P can = 1).
  • win = a 1 or 2 element vector of odd integers corresponding to the window width of the box filter. If scalar, (win) is set to win = [win win].

Outputs

  • xf = Filtered image class 'dataset'.

Options

options = a structure array with the following fields:

  • algorithm: [ {'gaussian'} | 'box'] Point source function for filtering.
'gaussian' - (win) corresponds to the std in the Gaussian distribution.
'box' - (win) is the number of x- and y- channels.

See Also

box_filter, linear_filter