]> Creatis software - gdcm.git/blobdiff - vtk/vtkgdcmViewer2.cxx
Temporary modif for vtk reading of illegal 'DICOM FD' (64 bits 'double' pixels)
[gdcm.git] / vtk / vtkgdcmViewer2.cxx
index 72dd2379a82a08dcbe4610dc2fdd8dc0365691ff..a263cfd7c3491c5e2134dd6d0f53e1feead2c9b0 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: vtkgdcmViewer2.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/10/03 15:50:13 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2009/11/03 14:05:23 $
+  Version:   $Revision: 1.17 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -113,6 +113,7 @@ public:
 #endif
 };
 
+// --------------------------------------------------------------------------------
 
 int main(int argc, char *argv[])
 {
@@ -129,6 +130,14 @@ int main(int argc, char *argv[])
       reader->SetKeepOverlays(true);
    }
 
+// not a very clever way to pass several params
+// but it's just for checking
+   if (strcmp (argv[argc-1], "n") == 0)
+   {
+      argc--; // Is it allowed?!?
+      reader->SetFlipY(false);
+   }
+
    if( argc == 2 )
       reader->SetFileName( argv[1] );
    else