]> Creatis software - gdcm.git/blobdiff - Example/exGrey2RGB.cxx
Fix mistypings
[gdcm.git] / Example / exGrey2RGB.cxx
index 768228bb42cd6b9478e0cd85c3c3812428963bde..7fc2846a217653afd2d09c4220ed9a3bebf57f69 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exGrey2RGB.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 08:35:44 $
-  Version:   $Revision: 1.4 $
+  Date:      $Date: 2007/05/23 14:18:05 $
+  Version:   $Revision: 1.6 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
       return 1;
    }
 
-   //gdcm::Debug::DebugOn();
+   //GDCM_NAME_SPACE::Debug::DebugOn();
 
    std::string filename = argv[1];
    std::string output   = argv[2];
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
       }
    }
  
-   gdcm::FileHelper *fh = new gdcm::FileHelper( );
+   GDCM_NAME_SPACE::FileHelper *fh = GDCM_NAME_SPACE::FileHelper::New( );
    fh->SetFileName( filename );
    fh->Load();
       
@@ -119,6 +119,8 @@ int main(int argc, char *argv[])
    fh->SetImageData(imageDataRGB, dataSize*3);   
    fh->WriteDcmExplVR( output );
 
+   fh->Delete();
+
    return 0;
 }