By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,986 Members | 1,568 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,986 IT Pros & Developers. It's quick & easy.

DICOM library

P: n/a
Hi everybody!
I've been looking for a python library wich allows me to work with
with DICOM files, for medical image processing. Finding nothing at
first, evenctually i've find the gdcm library, wich is suposed to be
for c developement, but they say that you can use it with python, as
"It is automatically wrapped to python (using swig)". So, the cuestion
is: how can I use this kind of library, wich is suposed to be used
with c, in python? When I download the tarball there ae only 2 .py
files. shall I install the whole library for using in C, and then try
to import the gdcm module in python? becouse i'm afraid it won't work.
Thanks in advance, and sorry for my english, wich is not very good
actually. Sorry for asking for something before trying everything, but
i'm almost desperate to find a library like that.
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jun 10, 1:05 pm, ust...@gmail.com wrote:
Hi everybody!
I've been looking for a python library wich allows me to work with
with DICOM files, for medical image processing. Finding nothing at
first, evenctually i've find thegdcmlibrary, wich is suposed to be
for c developement, but they say that you can use it with python, as
"It is automatically wrapped to python (using swig)". So, the cuestion
is: how can I use this kind of library, wich is suposed to be used
with c, in python? When I download the tarball there ae only 2 .py
files. shall I install the whole library for using in C, and then try
to import thegdcmmodule in python? becouse i'm afraid it won't work.
Thanks in advance, and sorry for my english, wich is not very good
actually. Sorry for asking for something before trying everything, but
i'm almost desperate to find a library like that.
You will get a tons more help directly at GDCM ML:

https://lists.sourceforge.net/lists/...dcm-developers

The process is quite simple, GDCM is written using a limited subset of
C++ (not C!) and using SWIG the API can be automagically wrap into
another target language (in your case: python).

If you download the binaries, you are all set (expect maybe adjusting
your PYTHONPATH).

Anyway this is highly GDCM oriented, and we should continue this
discussion directly on the GDCM ML.

HTH
-Mathieu
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.