Description Usage Arguments Value Author(s) See Also Examples
Basically, these methods provide “setter” functions to slot values within all mincIO objects. Unlike the “getter” functions which allow access to all slots, these setters only allow specific slots to be modified, in order to prevent the user from creating an inconsistent mincIO object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## S4 method for signature 'MincInfo,character'
mincIO.setProperty(mincIOobj, propertyId, value)
## S4 method for signature 'MincVolumeIO,character'
mincIO.setProperty(mincIOobj, propertyId, value)
## S4 method for signature 'MincSlice,character'
mincIO.setProperty(mincIOobj, propertyId, value)
## S4 method for signature 'MincSliceIO,character'
mincIO.setProperty(mincIOobj, propertyId, value)
## S4 method for signature 'MincVoxelIO,character'
mincIO.setProperty(mincIOobj, propertyId, value)
|
mincIOobj |
A mincIO object of interest. |
propertyId |
A string specifying the property whose value is to be modified. Only specific properties are permitted to be modified. Use the |
value |
The new value to which the property is to be set. The value type (e.g. numeric, character, etc.) must match the slot type. |
An updated mincIO object containing the new property value.
Jim Nikelski nikelski@bic.mni.mcgill.ca
mincIO.getProperty
MincInfo
MincVolumeIO
MincSlice
MincSliceIO
MincVoxelIO
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
\dontshow{
# clear debug flag and get full volume pathname
# ... dunno why zzz.R debug setting is not passed
R_DEBUG_rmincIO <- 0
volDir <- system.file("packageData/volumes", package="rmincIO")
}
# load the ICBM-152 volume
vIcbm <- "icbm_avg_152_t1_tal_lin.mnc"
vIcbm <- file.path(volDir, vIcbm)
vol <- mincIO.readVolume(vIcbm)
# show the raw attributes before update
str(vol)
# set selected properties
mincIO.setProperty(vol,"filename", "billy_bob.mnc")
mincIO.setProperty(vol,"volumeIntensityRange", c(0,123))
mincIO.setProperty(vol,"volumeType", "label")
mincIO.setProperty(vol,"colorMap", "AAL")
# show the raw attributes before update
str(vol)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.