View source: R/labelImageCentroids.R
labelImageCentroids | R Documentation |
Converts a label image to coordinates summarizing their positions
labelImageCentroids(img, physical = FALSE, convex = TRUE)
img |
ants image of labels (ints) |
physical |
boolean if you want physical space coordinates or not |
convex |
- if TRUE, return centroid, if FALSE return point with min average distance to other points with same label |
list with labels , array of label values, and centroids <- coordinates of label centroids
Avants BB, Duda JT
labelImage <- makeImage(c(2, 2, 2), 0:7)
labelImageCentroids(labelImage)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.