Hi,
I have a dataset which contains the metaheader tags also. when i try to save the dataset into file i get the repeated meta header tags.
How i am doing it is....
MVUFile1 = new DcmFileFormat(tempDS);
RetVal = MVUFile1->saveFile(DestFile, opt_ixfer, EET_ExplicitLength, EGL_recalcGL, EPD_noChange, 0, OFFalse);
if i try to save like this
RetVal = tempDS->saveFile(DestFile.c_str(), opt_ixfer, EET_ExplicitLength, EGL_recalcGL, EPD_noChange, 0, OFFalse);
i am not getting the header info display when i open the dicom image using DICOMWorks.
in both the cases dataset have the meta file header tags.
Could anyone help me in this regard....
thanking u,
Sirisha.
Getting repeated MetaFileHeader tags
Moderator: Moderator Team
-
- Posts: 12
- Joined: Wed, 2006-11-29, 07:01
- Contact:
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
If the file meta information header attributes (group 0x0002) are also present in the dataset, the DICOM file is corrupted. You need to remove the invalid data elements from the dataset before saving the file.
In order to facilitate this task, we will add a new method to the DcmMetaInfo, DcmDataset and DcmFileFormat classes which removes all elements from invalid groups. This will be part of the next DCMTK snapshot.
In order to facilitate this task, we will add a new method to the DcmMetaInfo, DcmDataset and DcmFileFormat classes which removes all elements from invalid groups. This will be part of the next DCMTK snapshot.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest