int main(int argc, char *argv[])
{
if( argc < 3 )
{
std::cerr << argv[0] << " input.dcm output.dcm" << std::endl;
return 1;
}
const char *filename = argv[1];
const char *outfilename = argv[2];
{
return 1;
}
{
{
std::cout << t << std::endl;
new_private = duplicate.
GetTag();
}
{
{
bv->GetLength() );
}
}
start = t;
}
for( ; it != dup.
End(); ++it )
{
}
{
return 1;
}
return 0;
}
Class to represent binary value (array of bytes)
Definition gdcmByteValue.h:35
void Fill(char c)
Definition gdcmByteValue.h:123
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
const Tag & GetTag() const
Get Tag.
Definition gdcmDataElement.h:67
VR const & GetVR() const
Definition gdcmDataElement.h:84
const ByteValue * GetByteValue() const
Definition gdcmDataElement.h:133
void SetValue(Value const &vl)
Definition gdcmDataElement.h:100
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
const DataElement & FindNextDataElement(const Tag &t) const
Definition gdcmDataSet.h:219
std::string GetPrivateCreator(const Tag &t) const
DataElementSet::const_iterator ConstIterator
Definition gdcmDataSet.h:60
void Insert(const DataElement &de)
Definition gdcmDataSet.h:128
ConstIterator Begin() const
Definition gdcmDataSet.h:64
ConstIterator End() const
Definition gdcmDataSet.h:66
a DICOM File
Definition gdcmFile.h:34
const DataSet & GetDataSet() const
Get Data Set.
Definition gdcmFile.h:57
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)
Class to represent a DICOM Data Element (Attribute) Tag (Group, Element).
Definition gdcmTag.h:39
bool IsPrivateCreator() const
Definition gdcmTag.h:206
void SetElement(uint16_t element)
Sets the 'Element number' of the given Tag.
Definition gdcmTag.h:61
void SetPrivateCreator(Tag const &t)
Set private creator:
Definition gdcmTag.h:193
uint16_t GetGroup() const
Returns the 'Group number' of the given Tag.
Definition gdcmTag.h:55
bool IsPrivate() const
Definition gdcmTag.h:155
uint16_t GetElement() const
Returns the 'Element number' of the given Tag.
Definition gdcmTag.h:57
@ VRASCII
Definition gdcmVR.h:101
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: