DicomMetadata
object. Only DICOM files from magnetic resonance scanners are supported.newDicomMetadataFromFile(fileName, checkFormat = TRUE, dictionary = NULL, stopTag = NULL)
TRUE
, the function will check for the magic string "DICM"
at byte offset 128. This string should be present, but in reality not all files contain it.NULL
then the built-in dictionary
will be loaded and used.NULL
. If not NULL
, the function will stop parsing the DICOM file if the specified tag is encountered. This can be used to speed up the procnewDicomMetadataFromFile
returns a DicomMetadata object, or NULL
on failure.J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18.
dictionary
, and newMriImageFromDicom
for information on how to create MriImage
objects from DICOM files.