X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=Example%2FWriteDicom.cxx;h=c8747dc3a3251abc7a6526d173aa4ba82427bae6;hb=e8439d97c8441809e9a5236e729bae1a25ffb418;hp=10554b397504a641e0c5a763c48dd771af8c19d8;hpb=64429225702c1ca65ea3b6882be0e19c94509843;p=gdcm.git diff --git a/Example/WriteDicom.cxx b/Example/WriteDicom.cxx index 10554b39..c8747dc3 100644 --- a/Example/WriteDicom.cxx +++ b/Example/WriteDicom.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: WriteDicom.cxx,v $ + Language: C++ + Date: $Date: 2004/11/16 04:26:18 $ + Version: $Revision: 1.7 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "gdcm.h" // Writting of a DICOM file based on a correct dicom header @@ -14,10 +31,10 @@ int main(int argc, char* argv[]) } const char *first = argv[1]; - gdcmFile *f1 = new gdcmFile( first ); + gdcm::File *f1 = new gdcm::File( first ); const char *second = argv[2]; - gdcmFile *f2 = new gdcmFile( second ); + gdcm::File *f2 = new gdcm::File( second ); // We assume that DICOM fields of second file actually exists : @@ -38,7 +55,7 @@ int main(int argc, char* argv[]) // and that does the job int dataSize = f2->GetImageDataSize(); - void *imageData = f2->GetImageData(); + uint8_t* imageData = f2->GetImageData(); std::cout << "dataSize :" << dataSize << std::endl;