From 08264d7f9e2ebce06146dfee773cb4429931e89a Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 25 Jan 2006 11:41:22 +0000 Subject: [PATCH] When Split is ON, only *one* slice in each directory -> number must be always 1 --- Example/PhilipsToBrucker2.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Example/PhilipsToBrucker2.cxx b/Example/PhilipsToBrucker2.cxx index 50395e58..517d23c5 100755 --- a/Example/PhilipsToBrucker2.cxx +++ b/Example/PhilipsToBrucker2.cxx @@ -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! -- 2.46.1