home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
swCHIP 1991 January
/
swCHIP_95-1.bin
/
demo
/
wit4711
/
lib
/
help
/
segment
/
getperim.
/
getperim.bin
Wrap
Text File
|
1995-12-09
|
1KB
|
22 lines
OPERATOR
getPerimeter --- calculates perimeter of each feature in input image
DESCRIPTION
The getPerimeter operator determines the perimeter related data corresponding to
the input feature vector and its associated input image. The resulting feature
vector is a duplicate of the input feature vector with the exception that
the perimeter object contained within each feature has been set to contain
all relevant perimeter data for that feature. Various statistics are generated
as part of each element in the perimeter vector. For example the maximum and
minimum distance between each features centroid and all of its perimeter
pixels is provided. As with the getBlobs operator, any non-zero pixel is
considered to be contained in a feature. Therefore, the input image must be
an 8 or 16-bit unsigned image and should have been previously thresholded
using the localThresh operator. Care must be taken to insure that the same
image used by getBlobs and getFeatures in order to generate the blob and
feature vectors is also used to generate the perimeter data associated with
that feature vector.