I am trying to convert a BMP to DICOM. I have succefully converted the image. Now i need different kind of images i mean ILE (Implicit Little Endian), ELE(Explicit Little Endian), JPEG, LossLess JPEG etc.
My program takes default transfer syntax. How do i change the transfer syntax UID so as to match my image requirements.
All kind of help is welcomed and thanks in advance for the support.
Dhaval
BMP to DICOM
Moderator: Moderator Team
-
- Posts: 7
- Joined: Wed, 2007-01-31, 15:35
- Location: Mumbai
- Contact:
-
- DCMTK Developer
- Posts: 2052
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Dear Dhaval,
you can use the DCMTK commandline tool dcmconv to convert between uncompressed transfer syntaxes and to change some encoding options.
For JPEG compression, you could use another DCMTK tool called dcmcjpeg.
Take a look into the source code of both tools to get an idea, how conversion works. It's quite easy, mainly through a call to:
Another example for JPEG can be found in the documentation, here The same code is used in dcmcjpeg to change the transfer syntax.
Regards,
Michael
you can use the DCMTK commandline tool dcmconv to convert between uncompressed transfer syntaxes and to change some encoding options.
For JPEG compression, you could use another DCMTK tool called dcmcjpeg.
Take a look into the source code of both tools to get an idea, how conversion works. It's quite easy, mainly through a call to:
Code: Select all
DcmDataset::chooseRepresentation(...)
Regards,
Michael
-
- Posts: 7
- Joined: Wed, 2007-01-31, 15:35
- Location: Mumbai
- Contact:
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest