Not able to add iconImage to DicomDir

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
deepak.bme
Posts: 10
Joined: Tue, 2013-01-29, 12:11

Not able to add iconImage to DicomDir

#1 Post by deepak.bme » Thu, 2013-04-25, 10:19

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.

J. Riesmeier
DCMTK Developer
Posts: 2015
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Not able to add iconImage to DicomDir

#2 Post by J. Riesmeier » Thu, 2013-04-25, 21:41

And, did you make sure that the PGM file with the filename prefix "Icon" exists?

deepak.bme
Posts: 10
Joined: Tue, 2013-01-29, 12:11

Re: Not able to add iconImage to DicomDir

#3 Post by deepak.bme » Fri, 2013-04-26, 02:08

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.

J. Riesmeier
DCMTK Developer
Posts: 2015
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Not able to add iconImage to DicomDir

#4 Post by J. Riesmeier » Fri, 2013-04-26, 14:38

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest