selectshells functioncamino_selectshells.RdPerforms the Camino selectshells function
camino_selectshells(infile, schemefile, max_bval = NULL,
min_bval = NULL, output_root = tempfile(),
max_unweighted_bval = NULL, remove_zero = FALSE, verbose = TRUE)Input 4D file to select shells
Scheme file with gradient information
Maximum b-value to include in the output. Default infinity (include all b-values). In the same units as the scheme file.
Minimum b-value to include in the output.
Default 0. In the same units as the scheme file.
b=0 measurements are treated as a special case and are not removed unless
the remove_zero is TRUE.
Root of output files, selected shells of DWI data are output along with the associated scheme file. Output file format will be the same as the input (NIFTI or raw).
Maximum b-value to include as an unweighted measurement. Some imaging schemes have a small non-zero b-value for the unweighted measurements. With this option, any b-value less than or equal to the specified value are treated as b=0.
If TRUE, b=0 measurements are not selected.
By default they are selected even if a minimum b-value is specified.
Print diagnostic messages
Output filename