Home > freetb4matlab > image > bwperim.m

bwperim

PURPOSE ^

% Find the perimeter of objects in binary images.

SYNOPSIS ^

function out = bwperim(bw, n=4)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} @var{BW2} = bwperim(@var{BW1})
% @deftypefnx{Function File} @var{BW2} = bwperim(@var{BW1}, @var{n})
% Find the perimeter of objects in binary images.
%
% A pixel is part of an object perimeter if its value is one and there
% is at least one zero-valued pixel in its neighborhood.
%
% By default the neighborhood of a pixel is 4 nearest pixels, but
% if @var{n} is set to 8 the 8 nearest pixels will be considered.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003