Description Usage Arguments Details Value Author(s) See Also Examples
This logical function returns TRUE if the input volume is structured
as a minc2 (hdf5) volume. Else, FALSE is returned.
1 | rmincUtil.isMinc2(filename)
|
filename |
Minc filename. |
This function uses the file system command to determine whether filename
refers to an hdf5 file. As such, execution of the file command must return
the string “Hierarchical Data Format” for minc2 files.
TRUE is returned for minc2 volumes, FALSE for everything else.
Jim Nikelski nikelski@bic.mni.mcgill.ca
rmincUtil.isMinc1 rmincUtil.isMinc rmincUtil.asMinc2 rmincUtil.isReadable
1 2 3 4 5 6 7 8 | ## Not run:
# very contrived example, but gets the point across
myFile <- file.path(volDir, "average305_PET_t1_tal_lin.mnc")
if ( !rmincUtil.isMinc2(myFile) && rmincUtil.isMinc1(myFile) ) {
myFile <- rmincUtil.asMinc2(myFile)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.