Code covered by the BSD License  

Highlights from
DICOM server connection

5.0

5.0 | 3 ratings Rate this file 20 Downloads (last 30 days) File Size: 16.8 KB File ID: #27177

DICOM server connection

by

 

This script connects to a DICOM server and transfer the a dicom series to the MATLAB workspace

| Watch this File

File Information
Description

DCMSERVER_CONNECTION enables to connect to a DICOM server and creates a list
of the available DICOM studies and the related series. These lists will
be shown up on a GUI and the user can select the DICOM series to transfer
the corresponding DICOM slices. At the end of the transfer the
DCMSERVER_CONNECTION creates a 3D array image volume (imaVOL) including
the dcm slices and a structure (dcminfo) containing the the dicom header
info relating to the dicom series.
 
 All functionality are based on the "DICOM Toolkit" (http://dicom.offis.de/dcmtk.php.en),
 thus you need to properly configure your computer (as DICOM client) and
 the required DICOM server, as well. (see the help of dcmserver_connection.m).

 Inputs:
   dcmaet - calling AE title
   dcmaec - called AE title of peer
   dcmhost - hostname of DICOM peer
   dcmport - tcp/ip port number of peer
   
 Outputs:
   imaVOL - 3D array of the transferred dcm slices
   dcminfo - dicom header structure relating to
               the last image slice

 Starting the transfer:
  1. run the "dcm_server_local_start.bat" script (see the help of dcmserver_connection.m).
  2. check the local DICOM server status using the "dcmserver_localtest.m"
       (optional, see the related help of dcmserver_localtest.m)
  3. check the remote DICOM server status using the "dcmserver_remotetest.m"
       (optional, see the related help of dcmserver_remotetest.m)
  4. start the dcmserver_connection function
       Example:
           dcmaet = 'MATLAB';
           dcmaec = 'PET-CT_HOST031';
           dcmport = '104';
           dcmhost = '192.168.114.2';
           [imaVOL dcminfo]=dcmserver_connection(dcmaet,dcmaec,dcmhost,dcmport);
            

For proper Installation and Configuration see the help of the “dcmserver_connection.m” file.

Acknowledgements

Progbar inspired this file.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements It has been tested on Windows XP
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
16 Mar 2012 Yi Sui  
01 May 2010 Kuniyuki Hidaka  
01 May 2010 Kuniyuki Hidaka

dcmserver_connection at 499
How to find 'index.dat' on the dcmserver_connection.m file?
indexdat_content = char(fread(fid));

Contact us