Learn R Programming

neuroim2 (version 0.8.5)

centroid: return the centroid of an object

Description

return the centroid of an object

Usage

centroid(x, ...)

# S4 method for NeuroSpace centroid(x)

# S4 method for ROICoords centroid(x)

Value

A numeric vector giving the centroid of x.

Arguments

x

an object with a centroid

...

extra args

Examples

Run this code

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

Run the code above in your browser using DataLab