Dicom Toolkit - dicomread
- :
image
=dicomread (filename)
- :
image
=dicomread (structure)
-
Load the image from a DICOM file.
Inputs
filename - a string giving the filename.*
structure - a structure with a field
Filename
(such as returned bydicominfo
).image - may be two or three dimensional, depending on the content of the file.
Outputs
image - An integer or float matrix will be returned, the number of bits will depend on the file.
Examples
Load the image data of a dcm file:
> image = dicomread(file_in_loadpath('imdata/simple-test.dcm')) image = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
See also: dicominfo.