parsePixelData | R Documentation |
These subroutines process the information contained after the DICOM header and process this information into an image (2D or 3D) or complex-valued vector.
parsePixelData(rawString, hdr, endian = "little", flipupdown = TRUE)
parseSpectroscopyData(rawString, hdr, endian = "little")
rawString |
is a vector of |
hdr |
is the list object of DICOM header information. |
endian |
is the endian-ness of the file (default is |
flipupdown |
is a logical variable for vertical flipping of the image
(default is |
A while
loop is used to traverse the unknown number of DICOM header
fields contained in a single file. Information contained in
“sequences” may be included/excluded according to the logical
variable skipSequence
(default = TRUE
).
A recursive implementation of the code breaks the DICOM file into segments and calls itself to parse each segment.
A list containing two elements:
all DICOM header fields (with or without “sequence” information).
the ‘image’ information.
Brandon Whitcher bwhitcher@gmail.com
See references.
Digital Imaging and Communications in Medicine (DICOM)
https://www.dicomstandard.org
https://en.wikipedia.org/wiki/DICOM
parseDICOMHeader
, readDICOMFile
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.