Home > freetb4matlab > image > ordfiltn.m

ordfiltn

PURPOSE ^

% Two dimensional ordered filtering.

SYNOPSIS ^

function retval = ordfiltn(A, nth, domain, varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} ordfiltn(@var{A}, @var{nth}, @var{domain}, [@var{S}, @var{padding}])
% Two dimensional ordered filtering.
%
% Ordered filter replaces an element of @var{A} with the @var{nth} 
% element of the sorted set of neighbours defined by the logical 
% (boolean) matrix @var{domain}.
% Neighbour elements are selected to the sort if the corresponding 
% element in the @var{domain} matrix is true.
% 
% The optional variable @var{S} is a matrix of size(@var{domain}). 
% Values of @var{S} corresponding to nonzero values of domain are 
% added to values obtained from @var{A} when doing the sorting.
%
% Optional variable @var{padding} determines how the matrix @var{A} 
% is padded from the edges. See @code{padarray} for details.
% 
% @seealso{ordfilt2, padarray}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003