The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: ordfiltn (A, nth, domain)
Function File: ordfiltn (A, nth, domain, S)
Function File: ordfiltn (…, padding)

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