Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

READ_DICOM


Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also

The READ_DICOM function reads an image from a DICOM file along with any associated color table.The return array type depends on the DICOM image pixel type.

This routine is written in the IDL language. Its source code can be found in the file read_dicom.pro in the lib subdirectory of the IDL distribution.

Syntax

Result = READ_DICOM (Filename [, Red, Green, Blue] [, IMAGE_INDEX=index])

Return Value

The return value can be a 2-D array for grayscale or a 3-D array for TrueColor images. TrueColor images are always returned in pixel interleave format.

Arguments

Filename

This argument is a scalar string that contains the full pathname of the file to read.

Red, Green, Blue

Named variables that will contain the red, green, and blue color vectors from the DICOM file if they exist.

Note
DICOM color vectors contain 16- bit color values that may need to be converted for use with IDL graphics routines.

Keywords

IMAGE_INDEX

Set this keyword to the index of the image to read from the file.

Examples

TVSCL,READ_DICOM(FILEPATH('mr_knee.dcm',$ 
   SUBDIR=['examples','data'])) 

Version History

Introduced: 5.2

See Also

QUERY_DICOM


Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]