I want to use DCMTK in my application.
To start with I have taken the following code --
OFCondition status = fileformat.loadFile("test.dcm");
if (fileformat.getDataset()->findAndGetOFString(DCM_PatientName, patientName).good())
cout << "Patient's Name: " << patientName << endl;
cerr << "Error: cannot access Patient's Name!" << endl;
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...