View source: R/shapeFeatures.R
shapeFeatures | R Documentation |
This function analyzes the objects detected in an image and calculates distinct shape characteristics for each object, such as circularity, eccentricity, radius, and perimeter. The resulting shape attributes can then be grouped using a Self-Organizing Map (SOM) from the 'Kohonen' package.
shapeFeatures(
img,
alpha = 1,
sigma = 2,
xdim = 2,
ydim = 1,
SOM = FALSE,
visualize = FALSE
)
img |
image (import by |
alpha |
threshold adjustment factor (numeric / 'static' / 'interactive' / 'gaussian')
(from |
sigma |
smoothing (numeric / 'static' / 'interactive' / 'gaussian')
(from |
xdim |
x-dimension for the SOM-grid (grid = hexagonal) |
ydim |
y-dimension for the SOM-grid (xdim * ydim = number of neurons) |
SOM |
if TRUE runs SOM algorithm on extracted shape features, grouping the detected objects |
visualize |
visualizes the groups computed by SOM |
data.frame
containing detailed information about every single object.
objectDetection()
, resultAnalytics()
, som
shapeFeatures(
beads,
alpha = 1,
sigma = 0,
SOM = TRUE,
visualize = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.