Description Usage Details Value Author(s) See Also Examples
Returns a single numeric code reflecting the Minc2 data type to be written.
1 | rmincUtil.getDataTypeCode(dataTypeAsString)
|
Returns a single numeric code reflecting the Minc2 data type to be written. Note that the data type reflects the actual storage format used within the minc volume. The possible storage formats include, for example, "MI_TYPE_BYTE", "MI_TYPE_SHORT", "MI_TYPE_INT", "MI_TYPE_FLOAT", "MI_TYPE_DOUBLE", etc. The following, more memorable, short-cut values are also permitted: "FLOAT", "DOUBLE", "INTEGER", "LONG", "SHORT", "BYTE".
A single numeric code reflecting the Minc2 data type to be written.
Jim Nikelski nikelski@bic.mni.mcgill.ca
rmincUtil.getDataTypes
rmincUtil.getDataClassCode
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# write new volume as real/double
# ... set class as real in object property
mincIO.setProperty(newVolumeFilled.vol, "volumeDataClass", rmincUtil.getDataClassCode("REAL"))
# ... set type as double
mincIO.setProperty(newVolumeFilled.vol, "volumeDataType", rmincUtil.getDataTypeCode("DOUBLE"))
# ... write it out
mincIO.writeVolume(newVolumeFilled.vol, "volume_out.mnc", clobber=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.