Description Usage Arguments Details Value Methods Author(s) See Also Examples
Given a MincVolumeIO object, write the data and meta-data to a minc volume.
1 2 | ## S4 method for signature 'MincVolumeIO'
mincIO.writeVolume(object, filename, clobber=FALSE)
|
object |
An instantiated MincVolumeIO object. |
filename |
The filename to be used when writing the volume. If this argument is not set, then filename will be taken from the MincVolumeIO object. |
clobber |
Logical argument to specify whether the output file should be overwritten. |
Given a valid MincVolumeIO object, the object is written to the file system. If the file already exists, then either the file will be over-written (clobber=TRUE), or an error message will be presented (clobber=FALSE).
This function is run for its side-effect, so no value is returned.
Only one method/signature.
Jim Nikelski nikelski@bic.mni.mcgill.ca
mincIO.makeNewVolume
mincIO.readVolume
MincVolumeIO
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# create an empty volume
vol1 <- mincIO.makeNewVolume("myIcbmTemplateVolume.mnc", likeTemplate="icbm152")
mincIO.writeVolume(vol1) # write out as "myIcbmTemplateVolume.mnc"
mincIO.writeVolume(vol1, "writeEmptyVol01.mnc") # write out as "writeEmptyVol01.mnc"
vol2 <- vol1 +1 # modify the volume and overwrite
mincIO.writeVolume(vol2, "writeEmptyVol01.mnc", clobber=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.