This function reads a DICOM file into a DicomMetadata object.
Only DICOM files from magnetic resonance scanners are supported.

Usage

1
2

Arguments

fileName

The name of a DICOM file.

checkFormat

If 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.

stopTag

An integer vector giving the group and element numbers (in
that order) of a DICOM tag, or 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 process if a specific tag is
required.

ignoreTransferSyntax

If TRUE, any transfer syntax stored in
the file will be ignored, and the code will try to deduce the transfer
syntax using heuristics. This may occasionally be necessary for awkward
DICOM files, but is not generally recommended.

ascii

If TRUE, the function will attempt to read an embedded
Siemens ASCII header, if one exists.