compute.features {SAFARI} | R Documentation |
Shape Features
Description
Compute the shape descriptors of the given region, represented by its binary matrix and the polygonal chain of its boundary.
Usage
compute.features(
region,
plg.chain,
categories = c("geometric", "boundary", "topological")
)
Arguments
region |
a binary matrix that represents the region. |
plg.chain |
an |
categories |
a character string or vector, specifying which features to compute. |
Details
The shape descriptors are divided into three categories: geometric, boundary, and topological. The default will compute the features from all categories. We also note that, for the binary matrix, the ones and zeros make up the region of interest and background, respectively.
Value
A numeric vector composed of the shape descriptors.
See Also
See Polygonal Chain for more information on the closed polygonal chain.
[Package SAFARI version 0.1.0 Index]