DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Wed, 2017-11-22, 22:55

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu, 2013-04-25, 10:19 
Offline

Joined: Tue, 2013-01-29, 12:11
Posts: 10
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.


Top
 Profile  
 
PostPosted: Thu, 2013-04-25, 21:41 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1874
Location: Oldenburg, Germany
And, did you make sure that the PGM file with the filename prefix "Icon" exists?


Top
 Profile  
 
PostPosted: Fri, 2013-04-26, 02:08 
Offline

Joined: Tue, 2013-01-29, 12:11
Posts: 10
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.


Top
 Profile  
 
PostPosted: Fri, 2013-04-26, 14:38 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1874
Location: Oldenburg, Germany
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

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


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group