PERIM

NAME
SYNOPSIS
PARAMETERS
DESCRIPTION
EXAMPLE
BUGS AND SHORTCOMINGS
AUTHORS
AVAILABILITY
SEE ALSO

NAME

perim - perimeter of binary shape

SYNOPSIS

p = perim(Img)

PARAMETERS

Img
binary array, 1 for object and 0 for background (double precision)
p
approximate perimeter of the shape inside Img

DESCRIPTION

This is a simple routine to measure the perimeter of a 2D shape. It assumes border pixels as a polygonal line: adjacent border pixels has measure size 1 or sqrt(2).

EXAMPLE

initial_dir = PWD;
chdir (SIPDIR + 'images');

Img = imread('star.bmp');
xbasc()
imshow(Img,2);
p = perim(Img)

chdir(initial_dir);

BUGS AND SHORTCOMINGS

Images are stored in double precision matrices. Hopefully, the next release will make usage of integer types.

AUTHORS

Ricardo Fabbri <rfabbri@if.sc.usp.br>

AVAILABILITY

The latest version of the Scilab Image Processing toolbox can be found at
http://siptoolbox.sourceforge.net

SEE ALSO

follow, bwborder, edge, im2bw