Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

parsePixelData

Parse DICOM Pixel or Spectroscopy Data


Description

These subroutines process the information contained after the DICOM header and process this information into an image (2D or 3D) or complex-valued vector.

Usage

parsePixelData(rawString, hdr, endian = "little", flipupdown = TRUE)

parseSpectroscopyData(rawString, hdr, endian = "little")

Arguments

rawString

is a vector of raw values taken directly from the DICOM file.

hdr

is the list object of DICOM header information.

endian

is the endian-ness of the file (default is "little").

flipupdown

is a logical variable for vertical flipping of the image (default is TRUE).

Details

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.

Value

A list containing two elements:

hdr

all DICOM header fields (with or without “sequence” information).

img

the ‘image’ information.

Author(s)

Brandon Whitcher bwhitcher@gmail.com

Source

See references.

References

See Also


oro.dicom

Rigorous - DICOM Input / Output

v0.5.3
BSD_3_clause + file LICENSE
Authors
Brandon Whitcher [aut, cre]
Initial release
2019-10-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.