Converts an AFNI file to an NIfTI file or nifti
using 3dDespike
AFNI BRIK or HEAD file
Number of volumes to ignore/delete
the curve fit order
a length 2 vector with the first being the threshold value of sigma for a spike and the second being the upper range of the allowed deviation from the curve:
should a mask of high-intensity voxels be used (TRUE) or
all voxels (FALSE)
dilation factor of the mask
Change the editing process to the following: If a voxel |s| value is >= c2, then replace the voxel value with the average of the two nearest non-spike (|s| < c2) values; the first one previous and the first one after. Note that the first cut value is not used here.
should the NEW or OLD method be used for the L1 fit. NEW is faster
Additional options to pass to 3dDespike
Should an image be returned?
additional arguments to readnii
If retimg then object of class nifti. Otherwise,
the outfile argument is returned (or a temporary filename)