From: jpr Date: Fri, 3 Feb 2006 17:51:13 +0000 (+0000) Subject: take into account taggrid X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0649a48683b0e781574c2279881d4341d9f4d60f;p=gdcm.git take into account taggrid --- diff --git a/Example/PhilipsToBrucker2.cxx b/Example/PhilipsToBrucker2.cxx index e4d9b954..e6d1a9c0 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/02/02 12:52:38 $ - Version: $Revision: 1.15 $ + Date: $Date: 2006/02/03 17:51:13 $ + Version: $Revision: 1.16 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -550,20 +550,23 @@ int main(int argc, char *argv[]) if (currentFile->IsVRCoherent(0x0021) == 1 ) stringVR = " "; else - stringVR = "IS"; + stringVR = "IS"; + currentFile->InsertEntryString(strChSliceIndex, 0x0021, 0x1020, stringVR); currentFile->InsertEntryString(chFrameIndex, 0x0021, 0x1040, stringVR); - - if (flag == 0) - { - flag = 1; - } - else - { - frameIndex++; - flag = 0; - } - + + if (!taggrid) + { + if (flag == 0) + { + flag = 1; + } + else + { + frameIndex++; + flag = 0; + } + } if (split) //fullWriteFilename = currentPhaseEncodingDirectionWriteDir + gdcm::GDCM_FILESEPARATOR