DICOM library

U

ustrum

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.
 
M

mathieu

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/listinfo/gdcm-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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top