I'm searching for a special DICOM tool...

Questions regarding other OFFIS DICOM tools

Moderator: Moderator Team

Post Reply
Message
Author
Mr.Lopez
Posts: 5
Joined: Thu, 2005-02-17, 14:31
Contact:

I'm searching for a special DICOM tool...

#1 Post by Mr.Lopez »

Hello,
I'm a student from Germany and searching for a tool I wasn't able to find yet on the DICOM-Homepage.
For a special project I need a tool, which is able to convert a *.tif- and *.jpg- file into an Dicom-file. Can somebody please give me a link to download or doesn't exist such a tool? I'm looking forward for any answers and help.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1437
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

See FAQ #34.

Mr.Lopez
Posts: 5
Joined: Thu, 2005-02-17, 14:31
Contact:

#3 Post by Mr.Lopez »

Oh no that's a pity. Did anybody already wrote such a program?

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

The answer to your question depends on the SOP class you want to use. Most solutions I'm aware of use the (old) Secondary Capture IOD for this purpose. Two ready-to-use programs that come to my mind are:
  • DicomEye from ETIAM if you prefer a graphical user interface
  • dicom3tools from David Clunie if you prefer the command line
Nevertheless, as mentioned in the FAQ it shouldn't be too complicated to write your own little program based on DCMTK. The following code snippet from the toolkit's documentation could be a starting point:

Code: Select all

char uid[100];
DcmFileFormat fileformat;
DcmDataset *dataset = fileformat.getDataset();
dataset->putAndInsertString(DCM_SOPClassUID, UID_SecondaryCaptureImageStorage);
dataset->putAndInsertString(DCM_SOPInstanceUID, dcmGenerateUniqueIdentifier(uid, SITE_INSTANCE_UID_ROOT));
dataset->putAndInsertString(DCM_PatientsName, "Doe^John");
/* ... */
dataset->putAndInsertUint8Array(DCM_PixelData, pixelData, pixelLength);
OFCondition status = fileformat.saveFile("test.dcm", EXS_LittleEndianExplicit);
if (status.bad())
  cerr << "Error: cannot write DICOM file (" << status.text() << ")" << endl;

Mr.Lopez
Posts: 5
Joined: Thu, 2005-02-17, 14:31
Contact:

#5 Post by Mr.Lopez »

Thank you very much for your answers. I'll try...

Mr.Lopez
Posts: 5
Joined: Thu, 2005-02-17, 14:31
Contact:

#6 Post by Mr.Lopez »

It works! I found a little program named Dicom2. It converts bitmaps into Dicom images (In the run-up I convert the jpegs into bitmaps with an image converter).
Now I'm searching a tool in DCMTK to build up a Dicom data out of a *.dcm file and a *.xml file. Is there a tool to manage this problem?
Thank you very much.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#7 Post by Jörg Riesmeier »

I'm not really sure what you are searching for. Anyway, the following tools might be interesting for you:
  • dcmodify: modify, insert and delete tags in DICOM files
  • xml2dcm: convert XML document to DICOM file or data set

Mr.Lopez
Posts: 5
Joined: Thu, 2005-02-17, 14:31
Contact:

#8 Post by Mr.Lopez »

What I mean is, I now have created an Image-Data (Dicom Image). I additionally modyfied a XML-Document. To create a usable Dicom-Data (readable for common viewers), I'm searching for a tool. I hope DCMTK includes such a function.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest