I'm searching for a special DICOM tool...
Moderator: Moderator Team
I'm searching for a special DICOM tool...
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.
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.
-
- OFFIS DICOM Team
- Posts: 1446
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
See FAQ #34.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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
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;
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.
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.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Who is online
Users browsing this forum: No registered users and 1 guest