Code covered by the BSD License  

Highlights from
DICOM server connection

5.0

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

DICOM server connection

by Laszlo Balkay

 

06 Apr 2010

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.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements It has been tested on Windows XP
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
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));

01 May 2010 Kuniyuki Hidaka  
16 Mar 2012 Yi  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
dicom Laszlo Balkay 06 Apr 2010 12:51:45
medical Laszlo Balkay 06 Apr 2010 12:51:46
pacs server Laszlo Balkay 06 Apr 2010 12:51:46
dicom server Laszlo Balkay 06 Apr 2010 12:51:46
dicom server shaaban 10 Jan 2012 06:08:30

Contact us at files@mathworks.com