


% -*- 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