
Last chance! 50% off unlimited learning
Sale ends in
Performs SPM12 Segmentation on an Image
spm12_segment(
filename,
set_origin = TRUE,
biasreg = 0.001,
biasfwhm = 60,
native = TRUE,
dartel = FALSE,
modulated = FALSE,
unmodulated = FALSE,
bias_field = FALSE,
bias_corrected = FALSE,
n_gaus = c(1, 1, 2, 3, 4, 2),
smoothness = 0,
sampling_distance = 3,
regularization = c(0, 0.001, 0.5, 0.05, 0.2),
affine = c("mni", "eastern", "subj", "none"),
mrf = 1,
def_inverse = TRUE,
def_forward = TRUE,
warp_cleanup = c("light", "none", "thorough"),
retimg = TRUE,
add_spm_dir = TRUE,
spmdir = spm_dir(verbose = verbose, install_dir = install_dir),
clean = TRUE,
verbose = TRUE,
reorient = FALSE,
install_dir = NULL,
...
)
File to be segmented
Run acpc_reorient
on image first.
Warning, this will set the orientation differently
Amount of bias regularization
FWHM of Gaussian smoothness of bias.
Keep tissue class image (c*) in alignment with the original.
Keep tissue class image (rc*) that can be used with the Dartel toolbox .
Keep modulated images. Modulation is to compensate for the effect of spatial normalisation.
Keep unmodulated data
save a bias corrected version of your images
save an estimated bias field from your images
The number of Gaussians used to represent the intensity distribution for each tissue class. Can be 1:8 or infinity
FWHM of smoothing done
smoothness of the warping field. This is used to derive a fudge factor to account for correlations between neighbouring voxels. Approximate distance between sampled points when estimating the model parameters.
parameters for warping regularization
Space to register the image to, using an affine registration
strength of the Markov random field. Setting the value to zero will disable the cleanup.
keep the inverse deformation field
keep the forward deformation field
Level of cleanup with the warping. If you find pieces of brain being chopped out in your data, then you may wish to disable or tone down the cleanup procedure.
Logical indicating if image should be returned or
result from run_matlab_script
Add SPM12 directory from this package
SPM dir to add, will use package default directory
Remove scripts from temporary directory after running
Print diagnostic messages
if retimg=TRUE
pass to readNIfTI
directory to download SPM12
Arguments passed to run_spm12_script
List of output files (or niftis depending on retimg
),
output matrix, and output deformations.