]> Creatis software - gdcm.git/blobdiff - Example/MergeDICOMRaw.cxx
upgrades for 4DSplitter
[gdcm.git] / Example / MergeDICOMRaw.cxx
index 9522548c4d326142c402e14741ea3b8f2a6e949a..4fb43c71e2f80e196511cb2407448cff291023ce 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: MergeDICOMRaw.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/12/03 16:43:56 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2011/03/29 07:35:57 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -125,13 +125,11 @@ int main(int argc, char *argv[])
    f->InsertEntryString(str.str(),0x0028,0x0002,"US"); // Samples per Pixel
 
 
-
-
-
    GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New(f);
    // Convert Media Storage SOP Class if needed
    std::string mssop = f->GetEntryString(0x0002,0x0002);
-   if ( GDCM_NAME_SPACE::Util::DicomStringEqual(mssop, "1.2.392.200036.9116.7.8.1.1.1") )
+   // See http://www.toshiba-europe.com/medical/Materials/PDF/Dicom/MIIUS0026EA.pdf
+   if ( GDCM_NAME_SPACE::Util::DicomStringEqual(mssop, "1.2.392.200036.9116.7.8.1.1.1") ) // Toshiba US Private Data Storage
      {
      fh->InsertEntryString("1.2.840.10008.5.1.4.1.1.3.1",0x0002,0x0002,"UI"); // Media Storage SOP Class UID
      fh->InsertEntryString("1.2.840.10008.5.1.4.1.1.3.1",0x0008,0x0016,"UI"); // SOP Class UID
@@ -139,7 +137,7 @@ int main(int argc, char *argv[])
 
   // TODO
   // for UltrasoundMultiframeImageStorage we may need also:
-  // (0028,0009) AT (0018,1063)                              #   4, 1 FrameIncrementPointer
+  // (0028,0009) AT (0018,1063)  #   4, 1 FrameIncrementPointer
   // and
   // Pixel Aspect Ratio
 
@@ -157,7 +155,6 @@ int main(int argc, char *argv[])
                 << "No file written\n";
    }
 
-
    fh->Delete();
    f->Delete();
    return 0;