X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.cxx;h=8337ce87c5fbdd37f832d838eeca44885de13690;hb=9676e37a52824da2f69d22c721178a4b5dc12191;hp=89c872f3cf81e0ae0608d02ffd9a972757a33114;hpb=55f3727f18aa712ea6d349de40b6a22ba2b6516d;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 89c872f3..8337ce87 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -2,8 +2,6 @@ #include "gdcm.h" -#define DEBUG 1 - static void _Swap(void* im, int swap, int lgr, int nb); ///////////////////////////////////////////////////////////////// @@ -159,10 +157,7 @@ void * gdcmFile::GetImageData (void) { *deb = (*deb >> (nbu-highBit-1)) & mask; deb ++; } - } - - printf ("on est sorti\n"); - + } // On l'affecte à un champ du dcmFile Pixels = _Pixels; @@ -413,11 +408,14 @@ int gdcmFile::WriteDcm (string nomFichier) { filePreamble=(char*)calloc(128,1); fwrite(filePreamble,128,1,fp1); fwrite("DICM",4,1,fp1); - if(DEBUG) printf("Ecriture File Preamble\n"); // un accesseur de + est obligatoire ??? + // pourtant le ElValSet contenu dans le gdcmHeader + // ne devrait pas être visible par l'utilisateur final (?) GetPubElVals().Write(fp1); + + fwrite(Pixels, lgrTotale, 1, fp1); fclose (fp1); return(1);