rmincUtil.asMinc2: Convert Volume to Minc2 Format

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/rmincUtil.R

Description

As the minc2 API is only capable of reading minc2 volumes, this function converts a given volume to minc2 format, as required.

Usage

1
rmincUtil.asMinc2(filename, keepName = TRUE)

Arguments

filename

minc1/minc2 filename to check/convert.

keepName

If TRUE, keep the original filename, but place the file in the temp directory.
If FALSE, generate a pseudo-random filename, and place file in the working directory.

Details

If the passed file is already in minc2 format, nothing is done, and the original filename is returned. Iff a conversion is required, the conversion is done via a system call to mincconvert – so, the minc programs need to be installed and on your path.

Value

Either the original filename, or a new filename pointing to the newly converted minc2 volume.

Author(s)

Jim Nikelski nikelski@bic.mni.mcgill.ca

See Also

rmincUtil.isMinc1 rmincUtil.isMinc2 rmincUtil.isMinc rmincUtil.isReadable

Examples

1
2
3
4
5
## Not run: 
myVolume1 <- "happy_little_minc1_volume.mnc"
myVolume2 <- rmincUtil.asMinc2(myVolume1)

## End(Not run)

jnikelski/rmincIO documentation built on May 19, 2019, 2:58 p.m.