- gdcm::File *original = new gdcm::File( filename );
- gdcm::File *copy = new gdcm::File( output );
-
- size_t dataSize = original->GetImageDataSizeRaw();
- uint8_t* imageData = original->GetImageDataRaw();
- (void)dataSize; // To use the variable and not have warnings at compil.
- (void)imageData; // To use the variable and not have warnings at compil.
-
- //First of all copy the header field by field
-
- // Warning :Accessor gdcmElementSet::GetEntry() should not exist
- // It was commented out by Mathieu, that was a *good* idea
- // (the user does NOT have to know the way we implemented the Header !)
- // Waiting for a 'clean' solution, I keep the method ...JPRx