Description Usage Arguments Value Author(s) References See Also Examples
Converts a vector of DICOM header information, assuming there are multiple entries per element of the vector, into a matrix.
1 | header2matrix(hdr, ncol, sep = " ", byrow = TRUE)
|
hdr |
is the result from extracting information from a DICOM
header field; e.g., using |
ncol |
is the number of columns. |
sep |
is the character string required to split entries in the header field. |
byrow |
is a logical variable (default = |
Matrix with length(hdr)
rows and ncol
columns.
Brandon Whitcher bjw34032@users.sourceforge.net
Digital Imaging and Communications in Medicine (DICOM)
http://medical.nema.org
1 2 3 4 5 | x <- readDICOMFile(system.file("dcm/Abdo.dcm", package="oro.dicom"))
pixelSpacing <- extractHeader(x$hdr, "PixelSpacing", numeric=FALSE)
pSmat <- header2matrix(pixelSpacing, ncol=2)
IOP <- extractHeader(x$hdr, "ImageOrientationPatient", numeric=FALSE)
IOPmat <- header2matrix(IOP, ncol=6)
|
oro.dicom: Rigorous - DICOM Input / Output (version = 0.5.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.