Home > freetb4matlab > image > ordfilt2.m

ordfilt2

PURPOSE ^

% Two dimensional ordered filtering.

SYNOPSIS ^

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

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} ordfilt2(@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 impad for details.
% 
% @seealso{medfilt2}
% @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