X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FReWrite.cxx;h=ae4530c16c8f7f5b849cf2dcd294f4885447d6d1;hb=18c59fde0963cefcae2048a0aeb4be39d739ca5d;hp=ebf50a240a3654feca26b2ea6ccb72497d66e1f3;hpb=019e0490da94a39fb0934ad94f5b8825f7537144;p=gdcm.git diff --git a/Example/ReWrite.cxx b/Example/ReWrite.cxx index ebf50a24..ae4530c1 100644 --- a/Example/ReWrite.cxx +++ b/Example/ReWrite.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: ReWrite.cxx,v $ Language: C++ - Date: $Date: 2007/09/14 08:23:34 $ - Version: $Revision: 1.33 $ + Date: $Date: 2008/05/16 10:40:23 $ + Version: $Revision: 1.35 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -42,6 +42,7 @@ int main(int argc, char *argv[]) " ", " mode = a (ACR), x (Explicit VR Dicom), r (RAW : only pixels) ", " j (jpeg lossless), 2 (jpeg2000) ", + " NOTE : JPEG encapsulated in a Dicom File, not JPEG File !", " keepoverlays : user wants to keep ACR-NEMA-like overlays ", " monochrome1 = user wants MONOCHROME1 photom. interp. (0=white) ", " noshadowseq: user doesn't want to load Private Sequences ", @@ -154,11 +155,10 @@ int main(int argc, char *argv[]) // ----------- End Arguments Manager --------- GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New(); - f->SetMaxSizeLoadEntry(0x7fff); - + f->SetMaxSizeLoadEntry(0x7fffffff); f->SetLoadMode( loadMode ); - f->SetFileName( fileName ); + bool res = f->Load(); if ( !res ) {