Skip to contents

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

Usage

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

Arguments

source

A NeuroVol object representing the source volume to be resampled.

target

A NeuroVol object representing the target volume 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 volume's dimensions and orientation.