Program: gdcm
Module: $RCSfile: Anonymize.cxx,v $
Language: C++
- Date: $Date: 2006/02/02 11:26:02 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2006/03/17 14:36:37 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <iostream>
+
+/// \todo : AnonymizeDirectory
+/// That should split the images : Patient/Study/Serie
+/// and keeps coherent the StudyInstanceUID, SeriesInstanceUID
+/// (Now, a new one is generated fore each image :-( )
int main(int argc, char *argv[])
{
START_USAGE(usage)
" \n Anonymize :\n ",
" Anonymize a full gdcm-readable Dicom image ",
" Warning : probably segfaults if pixels are not gdcm readable. ",
- " Use AnonymizeNoLoad instead. ",
+ " Use AnonymizeNoLoad instead. ",
" usage: Anonymize filein=inputFileName fileout=anonymizedFileName[debug] ",
" debug : user wants to run the program in 'debug mode' ",
FINISH_USAGE
// Since we just Anonymized the file, we know no modification
// was performed on the pixels.
- // We don't want this image appears as a 'Secondary Captured image'
- fh->SetKeepMediaStorageSOPClassUID(true);
+ // The written image will not appear as a 'Secondary Captured image'
+ // nor as a DERIVED one
+
+ fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
fh->WriteDcmExplVR(outputFileName);
std::cout <<"End Anonymize" << std::cout;