Biomedical User Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read and Write Multiframe DICOM File

This document informs you how to read and write a Multi-frame DICOM file using the Read Image Express VI and the Write Image Express VI. The example is a typical way to read and write a Multi-frame DICOM file using the Read Image Express VI and the Write Image Express VI.

blcok.jpg

Use the Read Image Express VI to read a Multi-frame DICOM file

  • Drop a Read Image Express VI from the Biomedical File I/O palette to a VI. The Configure Read Image dialog box appears.
  • Select Read single image file as the Read Action.
  • Specify the file path of a Multi-frame DICOM file in the File path field.
  • If the file you specify is a valid Multi-frame DICOM file, the Start and End controls and the Image index slider bar become enabled.
  • Drag the Image index slider bar to navigate image frames contained in the DICOM file.
  • Change the values of Start and End to specify which image frames you want to read.
  • Select the Show file path terminals? checkbox if you want to configure which image frames to read when you run the VI.
  • On the block diagram, expand all terminals for the Read Image Express VI. If you have checked the Show file path terminals? in the Configure Read Image dialog box, you see the start and end terminals. You can wire frame indexes to these terminals to determine which image frames to read when you run this VI. If you wire a numeric constant with the value -1 to the end terminal, the Read Image Express VI reads as many image frames as possible, beginning with value specified by start.
  • Wire the 3D array output.
  • Run the VI to read the image frames.


  Use the Write Image Express VI to write a Multi-frame DICOM file 

  1. Drop a Write Image Express VI from the Biomedical File I/O palette to a VI. The Configure Write Image dialog box appears.
  2. Select Write single image file as the Write Action.
  3. Set DICOM as the File type.
  4. Set 3D Array (I32) as the Input Data Type.
  5. Specify a DICOM file path in the File path field.
  6. Click OK to confirm the settings and close the Configure Write Image dialog box.
  7. On the block diagram, wire image data to the 3D array (I32) input.
  8. Run the VI write the image frames  to a DICOM file.
Contributors