labelImageCentroids: labelImageCentroids

Description Usage Arguments Value Author(s) Examples

View source: R/labelImageCentroids.R

Description

Converts a label image to coordinates summarizing their positions

Usage

1
labelImageCentroids(img, physical = FALSE, convex = TRUE)

Arguments

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

Value

list with labels , array of label values, and centroids <- coordinates of label centroids

Author(s)

Avants BB, Duda JT

Examples

1
2
labelImage<-makeImage( c(2,2,2) , 0:7 )
labelImageCentroids(labelImage)

neuroconductor-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.