Learn R Programming

ANTsR (version 1.0)

resampleImage: resampleImage

Description

Resample image by spacing or number of voxels with various interpolators

Usage

resampleImage(image, resampleParams, useVoxels = 0, interpType = 1)

Arguments

image

input antsImage matrix

resampleParams

vector of size dimension with numeric values

useVoxels

true means interpret resample params as voxel counts

interpType

one of 0 (linear), 1 (nearest neighbor), 2 (gaussian), 3 (windowed sinc), 4 (bspline)

Value

output antsImage

Examples

Run this code
# NOT RUN {
fi<-antsImageRead( getANTsRData("r16"))
finn<-resampleImage(fi,c(50,60),1,0)
filin<-resampleImage(fi,c(1.5,1.5),0,1)
# }

Run the code above in your browser using DataLab