resample-NeuroVol-NeuroSpace-method: Resample a NeuroVol object to match a NeuroSpace object

resample,NeuroVol,NeuroSpace-methodR Documentation

Resample a NeuroVol object to match a NeuroSpace object

Description

This method resamples a NeuroVol object (source) to match the dimensions and orientation of a NeuroSpace object (target).

Usage

## S4 method for signature 'NeuroVol,NeuroSpace'
resample(source, target, interpolation = 3L)

Arguments

source

A NeuroVol object representing the source volume to be resampled.

target

A NeuroSpace object representing the target space to match the dimensions and orientation of the source volume.

interpolation

A single integer specifying the type of interpolation to be applied to the final resampled image. May be 0 (nearest neighbor), 1 (trilinear), or 3 (cubic spline). No other values are valid.

Value

A NeuroVol object with the resampled source volume matched to the target space's dimensions and orientation.


bbuchsbaum/neuroim2 documentation built on April 20, 2024, 4:20 p.m.