View source: R/compute.features.R
compute.features | R Documentation |
Compute the shape descriptors of the given region, represented by its binary matrix and the polygonal chain of its boundary.
compute.features( region, plg.chain, categories = c("geometric", "boundary", "topological") )
region |
a binary matrix that represents the region. |
plg.chain |
an n-by-2 numeric matrix that represents the boundary. |
categories |
a character string or vector, specifying which features to compute. |
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.
A numeric vector composed of the shape descriptors.
See Polygonal Chain for more information on the closed polygonal chain.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.