centroid {neuroim2}R Documentation

return the centroid of an object

Description

return the centroid of an object

Usage

centroid(x, ...)

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

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

Arguments

x

an object with a centroid

...

extra args

Value

A numeric vector giving the centroid of x.

Examples


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


[Package neuroim2 version 0.8.1 Index]