Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Tue, 2018-03-20, 08:42

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed, 2011-03-30, 12:58 

Joined: Wed, 2011-03-23, 12:40
Posts: 12
Location: Alkmaar, The Netherlands
I want to use DCMTK in my application.

To start with I have taken the following code --
DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("test.dcm");
if (status.good())
  OFString patientName;
  if (fileformat.getDataset()->findAndGetOFString(DCM_PatientName, patientName).good())
    cout << "Patient's Name: " << patientName << endl;
  } else
    cerr << "Error: cannot access Patient's Name!" << endl;
} else
  cerr << "Error: cannot read DICOM file (" << status.text() << ")" << endl;

I would be thankful if you could tell me which files to include (#include)
and exact steps for compilation on linux ubuntu.

Thanks in advance...

Manohar Kuse
SenoCAD Research
Alkmaar, The Netherlands

 Post subject:
PostPosted: Wed, 2011-03-30, 16:46 
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1664
Location: Oldenburg, Germany
This has nothing to do with DICOMscope and therefore, should not be discussed here. Also, do not cross-post if you are askingnearly the same in different threads.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users 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