X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FReWrite.cxx;h=6d500d98c44846050b3d9255c1d3229707bb3c97;hb=2b5ddcb309843e22272eca54f9cc19970e3d1fd9;hp=1cabef1b08662ea4395dac370a2a6ad77a2d505f;hpb=48f7ce7aa61778477992107caf15e8960359e66b;p=gdcm.git diff --git a/Example/ReWrite.cxx b/Example/ReWrite.cxx index 1cabef1b..6d500d98 100644 --- a/Example/ReWrite.cxx +++ b/Example/ReWrite.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: ReWrite.cxx,v $ Language: C++ - Date: $Date: 2006/01/26 15:52:43 $ - Version: $Revision: 1.17 $ + Date: $Date: 2006/03/17 14:36:37 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) " Re write a full gdcm-readable Dicom image ", " (usefull when the file header is not very straight). ", " ", - " usage: ReWrite filein=inputFileName fileout=anonymizedFileName ", + " usage: ReWrite filein=inputFileName fileout=outputFileName ", " [mode=write mode] [noshadow] [noseq][debug] ", " ", " mode = a (ACR), x (Explicit VR Dicom), r (RAW : only pixels) ", @@ -163,7 +163,7 @@ int main(int argc, char *argv[]) // Since we just ReWrite the image, we know no modification // was performed on the pixels. // We don't want this image appears as a 'Secondary Captured image' - fh->SetKeepMediaStorageSOPClassUID(true); + fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE); switch (mode[0]) {