int main(int argc, char* argv[] )
{
if( argc < 3 )
{
std::cerr << argv[0] << " path/to/05148044-mr-siemens-avanto-syngo.dcm output.dcm" << std::endl;
return 1;
}
const char *filename = argv[1];
const char *outfilename = argv[2];
{
return 1;
}
const char str1[] = "GDCM was here 3!";
std::cout << de1 << std::endl;
const char str2[] = "GDCM was here 2!";
std::cout << de2 << std::endl;
const char str3[] = "GDCM was here 3!";
std::cout << de3 << std::endl;
{
return 1;
}
return 0;
}
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
void SetByteValue(const char *array, VL length)
Definition gdcmDataElement.h:126
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
const DataElement & GetDataElement(const Tag &t) const
Definition gdcmDataSet.h:188
bool FindDataElement(const PrivateTag &t) const
Look up if private tag 't' is present in the dataset:
void Replace(const DataElement &de)
Replace a dataelement with another one.
Definition gdcmDataSet.h:150
a DICOM File
Definition gdcmFile.h:34
const DataSet & GetDataSet() const
Get Data Set.
Definition gdcmFile.h:57
Class to represent a Private DICOM Data Element (Attribute) Tag (Group, Element, Owner)
Definition gdcmPrivateTag.h:39
Reader ala DOM (Document Object Model)
Definition gdcmReader.h:54
const File & GetFile() const
Set/Get File.
Definition gdcmReader.h:72
virtual bool Read()
Main function to read a file.
void SetFileName(const char *filename_native)
Writer ala DOM (Document Object Model)
Definition gdcmWriter.h:49
virtual bool Write()
Main function to tell the writer to write.
void SetFile(const File &f)
Set/Get the DICOM file (DataSet + Header)
Definition gdcmWriter.h:66
void SetFileName(const char *filename_native)
Set the filename of DICOM file to write: