N dimensional ordered filtering.
Ordered filter replaces an element of A with the nth element element of the sorted set of neighbours defined by the logical (boolean) matrix domain. Neighbour elements are selected to the sort if the corresponding element in the domain matrix is true.
The optional variable S is a matrix of size(domain). Values of S corresponding to nonzero values of domain are added to values obtained from A when doing the sorting.
Optional variable padding determines how the matrix A
is padded from the edges. See padarray
for details.
See also: medfilt2, padarray, ordfilt2.
Package: image