Wrapper for AFNI 3dQwarp function

afni_3dQwarp(file, fixed, align = TRUE, align_opts = "",
  resample = FALSE, blur = 2.345, outfile = NULL, retimg = TRUE,
  opts = "", ...)

Qwarp(...)

qwarp(...)

Arguments

file

nifti object or NIfTI filename to register to fixed image

fixed

nifti object or NIfTI filename of fixed image, target of registration

align

Should afni_3dAllineate be run for an affine alignment done before warping?

align_opts

Options for alignment, in a single string.

resample

This option simply resamples the file dataset to match the fixed dataset grid. You can use this if the two datasets overlap well (as seen in the AFNI GUI), but are not on the same 3D grid.

blur

Gaussian blur the input images (specified in FWHM!) voxels before doing the alignment (the output dataset will not be blurred). The default is 2.345 (for no good reason).

outfile

Output filename (should not have an extension)

retimg

Should an image be returned (TRUE) or a filename?

opts

Additional options passed to 3dQwarp

...

additional arguments to afni_3dAFNItoNIFTI

Value

Output filename of the brik or nifti object, depending on retimg