Skip to contents

return the centroid of an object

Usage

centroid(x, ...)

# S4 method for NeuroSpace
centroid(x)

# S4 method for ROICoords
centroid(x)

Arguments

x

an object with a centroid

...

extra args

Value

the centroid of the object

Examples


bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
centroid(bspace)
#> [1] 10 10 10