X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FVolume2Dicom.cxx;h=a4721fff2563c5e3cf5abca43a28292b5fa4da9e;hb=d00078b5e19310b379c8339fa8fe38362e8ca392;hp=05eeeb84f8b5a075f0523744f0474ad723eccdc5;hpb=145d405e9e35d7338bd1a7a3cccfa5b84befc042;p=gdcm.git diff --git a/Example/Volume2Dicom.cxx b/Example/Volume2Dicom.cxx index 05eeeb84..a4721fff 100644 --- a/Example/Volume2Dicom.cxx +++ b/Example/Volume2Dicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: Volume2Dicom.cxx,v $ Language: C++ - Date: $Date: 2004/12/04 08:57:19 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/01/20 16:16:58 $ + 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 @@ -26,7 +26,7 @@ #include "gdcmHeader.h" #include "gdcmDocEntry.h" #include "gdcmBinEntry.h" -#include "gdcmFile.h" +#include "gdcmFileHelper.h" #include "gdcmUtil.h" #define USAGE "USAGE: Input3DImage OutputDirectory" @@ -87,8 +87,8 @@ int main( int argc, char * argv[] ) if (val < min) min = val; } - float wcenter = (max+min) / 2.; - float wwidth = (max-min)>0 ? (max-min) : 1.; + //float wcenter = (max+min) / 2.; + //float wwidth = (max-min)>0 ? (max-min) : 1.; //////////////////////////////////////////////////////////// // Get file date and time // @@ -122,7 +122,7 @@ int main( int argc, char * argv[] ) //////////////////////////////////////////////////////////// // Create a new dicom file object from the header // //////////////////////////////////////////////////////////// - gdcm::File *f1 = new gdcm::File(h1); + gdcm::FileHelper *f1 = new gdcm::FileHelper(h1); uint8_t *myData = f1->GetImageData(); // Get an Image pointer f1->SetImageData( myData, sliceSize); // This callback ensures that the internal // Pixel_Data of f1 is set correctly