centroid-methods: return the centroid of an object

Description Usage Arguments Examples

Description

return the centroid of an object

return a matrix of centroids of an object

Usage

1
2
3
4
5
6
7
8
9
centroid(x, ...)

centroids(x, ...)

## S4 method for signature 'NeuroSpace'
centroid(x)

## S4 method for signature 'ROICoords'
centroid(x)

Arguments

x

an object with a centroid

extra

args

x

an object with multiple centroids (e.g. a ClusteredNeuroVol)

extra

args

Examples

1
2
bspace <- NeuroSpace(c(10,10,10), c(2,2,2))
centroid(bspace)

bbuchsbaum/neuroim2 documentation built on Oct. 15, 2019, 2:55 p.m.