]> Creatis software - gdcm.git/commitdiff
When Split is ON, only *one* slice in each directory
authorjpr <jpr>
Wed, 25 Jan 2006 11:41:22 +0000 (11:41 +0000)
committerjpr <jpr>
Wed, 25 Jan 2006 11:41:22 +0000 (11:41 +0000)
-> number must be always 1

Example/PhilipsToBrucker2.cxx

index 50395e582871a50fc983ff3b783fd7723787d8d5..517d23c50c5446b2eef90a338982a61796b42d24 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: PhilipsToBrucker2.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/25 11:08:18 $
-  Version:   $Revision: 1.6 $
+  Date:      $Date: 2006/01/25 11:41:22 $
+  Version:   $Revision: 1.7 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -424,7 +424,10 @@ int main(int argc, char *argv[])
          }
          previousImagePosition          = currentImagePosition;
          previousPhaseEncodingDirection = ""; //currentPhaseEncodingDirection;
-         sliceIndex += 1;
+         if (split)
+            sliceIndex = 1; // only *one* slice in a given directory
+         else
+            sliceIndex += 1;
       }      
 
 // We don't split on Row/Column!