-// ============================================================
-// Don't load the pixels in memory.
-// Overwrite the file
-// ============================================================
-
-// First, we set values to replace the ones we want to hide
-
- // Patient's name
- f1->AddAnonymizeElement(0x0010, 0x0010, "Tartempion");
- // Patient's ID
- f1->AddAnonymizeElement( 0x0010, 0x0020,"007" );
- // Study Instance UID
- f1->AddAnonymizeElement(0x0020, 0x000d, "6.66.666.6666" );
-
-// --------------------- we overwrite the file
-
-// No need to load the pixels.
-// The gdcm::File remains untouched in memory
-
- f1->AnonymizeNoLoad();
-
-// No need to write the File : modif were done on disc !