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.
Result = READ_DICOM (Filename [, Red, Green, Blue] [, IMAGE_INDEX=index])
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.
This argument is a scalar string that contains the full pathname of the file to read.
Named variables that will contain the red, green, and blue color vectors from the DICOM file if they exist.
Set this keyword to the index of the image to read from the file.