spacing-methods: Extract Voxel Dimensions of an Image

spacingR Documentation

Extract Voxel Dimensions of an Image

Description

This function extracts the voxel dimensions of an image represented by the input object.

Usage

spacing(x)

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

## S4 method for signature 'NeuroObj'
spacing(x)

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

Arguments

x

The object representing the image.

Value

A numeric vector containing the voxel dimensions of the image.

Examples

bspace <- NeuroSpace(c(10, 10, 10), c(2, 2, 2))
all.equal(spacing(bspace), c(2, 2, 2))


bbuchsbaum/neuroim2 documentation built on Nov. 3, 2024, 9:31 a.m.