I have a DcmFileFormat object. How to change DcmFileFormat object to DicomImage object?
Can you help me?
Thank you so much!
How to change DcmFileFormat type to DcmImage type?
Moderator: Moderator Team
-
- Posts: 28
- Joined: Mon, 2016-05-09, 08:32
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: How to change DcmFileFormat type to DcmImage type?
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
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
Who is online
Users browsing this forum: No registered users and 1 guest