Hi All,
I am not able to add icon Images to DicomDir file. I am using following code to add Icons
mDcmDirObj->enableIconImageMode(OFTrue);
mDcmDirObj->setIconPrefix("Icon");
mDcmDirObj->setIconSize(128);
DicomDirImageImplementation imagePlugin;
mDcmDirObj->addImageSupport(&imagePlugin);
getting following warning msg:-
cannot create monochrome icon from image file, using default
Can you please help me on this.
Not able to add iconImage to DicomDir
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2505
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Not able to add iconImage to DicomDir
And, did you make sure that the PGM file with the filename prefix "Icon" exists?
-
- Posts: 10
- Joined: Tue, 2013-01-29, 12:11
Re: Not able to add iconImage to DicomDir
Thanks for your reply
No ,that file does not exist . Can you please guide me
1) How i have to generate PGM file
2) Where I have to kept that file to add into the dicomdir.
No ,that file does not exist . Can you please guide me
1) How i have to generate PGM file
2) Where I have to kept that file to add into the dicomdir.
-
- DCMTK Developer
- Posts: 2505
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Not able to add iconImage to DicomDir
Did you read the documentation of setIconPrefix()? Why do you want to create the icon images from externally stored PGM files, if you don't have them? By default, the icon images are created from the referenced DICOM files.
Who is online
Users browsing this forum: No registered users and 1 guest