X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FWrite.cxx;h=51352fe637b81df238105dcff4250601d06dd9d5;hb=d92357eba92c1e3b13172b58db4cd67289896fb1;hp=43e376870c193c597def1025a3378e7279d475bc;hpb=ab62b1a706df8e2ab1fbf26fa5037d6c22293655;p=gdcm.git diff --git a/Example/Write.cxx b/Example/Write.cxx index 43e37687..51352fe6 100644 --- a/Example/Write.cxx +++ b/Example/Write.cxx @@ -7,8 +7,8 @@ int main(int argc, char* argv[]) std::string toto; char zozo[200]; - gdcmHeader* e1; - gdcmFile * f1; + gdcm::Header* e1; + gdcm::File * f1; //gdcmDocument * d; //not used void* imageData; @@ -45,14 +45,14 @@ int main(int argc, char* argv[]) toto = argv[1]; - e1 = new gdcmHeader( toto.c_str() ); + e1 = new gdcm::Header( toto.c_str() ); if (!e1->IsReadable()) { std::cerr << "Sorry, not a Readable DICOM / ACR File" <Print(); - f1 = new gdcmFile(e1); + f1 = new gdcm::File(e1); // --- dataSize = f1->GetImageDataSize(); @@ -87,11 +87,12 @@ int main(int argc, char* argv[]) && transferSyntaxName != "Uncompressed ACR-NEMA" ) { std::cout << std::endl << "===========================================" << std::endl; - f1->ParsePixelData(); + f1->GetPixelConverter()->Print(); std::cout << std::endl << "===========================================" << std::endl; } imageData= f1->GetImageData(); + (void)imageData; // to avoid warnings switch (argv[2][0]) { case 'a' :