File Exchange

image thumbnail

DICOM server connection

version 1.0 (16.8 KB) by

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

4 Ratings



View License

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" (,
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).

dcmaet - calling AE title
dcmaec - called AE title of peer
dcmhost - hostname of DICOM peer
dcmport - tcp/ip port number of peer

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
dcmaet = 'MATLAB';
dcmaec = 'PET-CT_HOST031';
dcmport = '104';
dcmhost = '';
[imaVOL dcminfo]=dcmserver_connection(dcmaet,dcmaec,dcmhost,dcmport);

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

Comments and Ratings (4)

Yi Sui

Yi Sui (view profile)

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

MATLAB Release
MATLAB 7.8 (R2009a)

Inspired by: progbar

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video