How to change DcmFileFormat type to DcmImage type?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
kstn_hut_hat
Posts: 28
Joined: Mon, 2016-05-09, 08:32

How to change DcmFileFormat type to DcmImage type?

#1 Post by kstn_hut_hat »

I have a DcmFileFormat object. How to change DcmFileFormat object to DicomImage object?

Can you help me?
Thank you so much!

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

Re: How to change DcmFileFormat type to DcmImage type?

#2 Post by Michael Onken »

Hi,

You can directly put a file name into the constructor of DicomImage, as the classe's documentation and the module's example shows. Also, the documentation shows that there is another constructor that can take a DcmObject, e.g. a DcmDataset, i.e. you can write DicomImage(dcmff.getDataset()) if dcmff is your DcmFileFormat variable.

Best,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest