PhotometricInterpretation lost
Moderator: Moderator Team
PhotometricInterpretation lost
Hello,
I am using img2dcm --input-format BMP --write-file -nsc --dataset-from documents/study-00000.series-00000.image-00000.dcm sample.bmp ./frame2large/header.dcm
but it did not maintain the photometric conversion. How do I do that? and all the other tags?
$ dcmdump documents/frames/header.dcm | grep 0028,0004
(0028,0004) CS [RGB] # 4, 1 PhotometricInterpretation
Best Regards
George
I am using img2dcm --input-format BMP --write-file -nsc --dataset-from documents/study-00000.series-00000.image-00000.dcm sample.bmp ./frame2large/header.dcm
but it did not maintain the photometric conversion. How do I do that? and all the other tags?
$ dcmdump documents/frames/header.dcm | grep 0028,0004
(0028,0004) CS [RGB] # 4, 1 PhotometricInterpretation
Best Regards
George
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: PhotometricInterpretation lost
Hi George,
what do you mean, what is your expectation on how Photometric Intepretation should be handled and what happened instead? What "all other tags"?
BR Michael
what do you mean, what is your expectation on how Photometric Intepretation should be handled and what happened instead? What "all other tags"?
BR Michael
Re: PhotometricInterpretation lost
I mean the value of the photometric from --dataset-from documents/study-00000.series-00000.image-00000.dcm was not copied to ./frame2large/header.dcm
Re: PhotometricInterpretation lost
Also, I humbly add that if it is possible to tell me how to modify all the dicom tags without adjusting the one related to jpeg2000 compression because it seems using gdcmconv is not good enough or img to retain the dicom tags
-
- OFFIS DICOM Team
- Posts: 1506
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
Re: PhotometricInterpretation lost
That is right. The photometric interpretation is derived from the image file that is converted to DICOM. It would make very little sense to specify that separately.I mean the value of the photometric from --dataset-from documents/study-00000.series-00000.image-00000.dcm was not copied to ./frame2large/header.dcm
Re: PhotometricInterpretation lost
Yes, but how can I ensure the quality of the dicom picture that was extracted using the below code can be restored using img2dcm
Code: Select all
DicomImage *dicomImage = new DicomImage(dicomConverted.c_str(), CIF_UsePartialAccessToPixelData, frameNumber, 1 );
if (dicomImage->getStatus() != EIS_Normal)
{
delete dicomImage;
}
if (dicomImage->writeBMP(concat.c_str(), 8, 0) != 1)
{
delete dicomImage;
return false;
}
-
- DCMTK Developer
- Posts: 2073
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: PhotometricInterpretation lost
I guess this is the same questions as in this thread (answered there), please don't cross-post your questions.
Michael
Michael
Who is online
Users browsing this forum: Bing [Bot] and 1 guest