From: jpr Date: Wed, 25 Jan 2006 11:41:22 +0000 (+0000) Subject: When Split is ON, only *one* slice in each directory X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=08264d7f9e2ebce06146dfee773cb4429931e89a;p=gdcm.git When Split is ON, only *one* slice in each directory -> number must be always 1 --- 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!