newMriImageFromDicom {tractor.base} | R Documentation |
Functions for reading images from DICOM files.
newMriImageFromDicom(fileName) newMriImageFromDicomDirectory(dicomDir, readDiffusionParams = FALSE) newMriImageFromDicomMetadata(metadata, flipY = TRUE) newMriImageMetadataFromDicom(fileName) newMriImageMetadataFromDicomMetadata(dicom)
fileName |
Character vector of length one giving the name of a DICOM file. |
dicomDir |
Character vector of length one giving the name of a directory containing DICOM files. |
readDiffusionParams |
Logical value: should diffusion MRI parameters (b-values and gradient directions) be retrieved from the files if possible? |
metadata, dicom |
DicomMetadata objects. |
flipY |
Logical value: should the image be flipped in the Y direction? Usually this is appropriate to convert between DICOM's LPS and TractoR's LAS storage conventions. |
newMriImageFromDicom
and newMriImageFromDicomMetadata
return an MriImage object. newMriImageMetadataFromDicom
and newMriImageMetadataFromDicomMetadata
return an MriImageMetadata object. newMriImageFromDicomDirectory
returns a list containing elements
image |
An MriImage object. |
bValues |
Diffusion b-values, if requested. Will be NA if the information could not be found in the files. |
bVectors |
Diffusion gradient vectors, if requested. Will be NA if the information could not be found in the files. |
Jon Clayden
DicomMetadata
, MriImage
, MriImageMetadata
.