centroid-methods: return the centroid of an object

centroidR 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)


neuroim2 documentation built on April 16, 2026, 5:07 p.m.