X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestCopyDicom.cxx;h=b13d002e31c7e4ee7879e9ecccd314b187fb6909;hb=75fe55c7b72932dac378a24e7315071bc0ac9af6;hp=f93ce53ec1068012d6f831b4a7056e4f47d676b0;hpb=2f27193f6cbd42d1143738e40563b4a4bd4a0c8a;p=gdcm.git diff --git a/Example/TestCopyDicom.cxx b/Example/TestCopyDicom.cxx index f93ce53e..b13d002e 100644 --- a/Example/TestCopyDicom.cxx +++ b/Example/TestCopyDicom.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestCopyDicom.cxx,v $ + Language: C++ + Date: $Date: 2004/11/19 08:37:55 $ + Version: $Revision: 1.14 $ + + 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 "gdcmHeader.h" #include "gdcmFile.h" #include "gdcmDocument.h" @@ -74,6 +91,8 @@ int main(int argc, char* argv[]) size_t dataSize = original->GetImageDataSize(); uint8_t* imageData = original->GetImageData(); + (void)imageData; + (void)dataSize; //First of all copy the header field by field @@ -120,7 +139,7 @@ int main(int argc, char* argv[]) //copy->GetImageData(); - copy->SetImageData(imageData, dataSize); + //copy->SetImageData(imageData, dataSize); std::cout << "--- Copy ----------------------" << std::endl; std::cout <