Learn R Programming

ANTsR (version 1.0)

Motion-Correction: Motion Correction

Description

Perform motion-correction on the given image

Usage

motion_correction( img )

Arguments

img

Input image. Can be a filename of an 3D image or an 'antsImage' of pixeltype 'float' and dimension '3'.

Value

Success -- a list of named elements containing motion-corrected image (name 'moco_img' type 'antsImage'), motion-correction parameters (name 'moco_params' type 'antsMatrix'), average image (name 'moco_avg_img' type 'antsImage'). Failure -- NULL

Examples

Run this code
# NOT RUN {
moco_results <- motion_correction( "input_img.nii" )
# motion-corrected image
moco_results$moco_img
# motion-correction parameters
moco_results$moco_params
# average image
moco_results$moco_avg_img
# }

Run the code above in your browser using DataLab