BMP to DICOM

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
darb_india
Posts: 7
Joined: Wed, 2007-01-31, 15:35
Location: Mumbai
Contact:

BMP to DICOM

#1 Post by darb_india »

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

Michael Onken
DCMTK Developer
Posts: 2052
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

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:

Code: Select all

  DcmDataset::chooseRepresentation(...)
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

darb_india
Posts: 7
Joined: Wed, 2007-01-31, 15:35
Location: Mumbai
Contact:

#3 Post by darb_india »

Thanks that should be one way of doing it or else i can mention while writing the file i mean savefile can also do the trick.

I got it still thanks for all the help

Regards,
Dhaval

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest