X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestReadWriteReadCompare.cxx;h=cf4840347f6c993db99e8b8a54b06f624ec90be3;hb=933fb20f37f5f900c53c59b2a739e18303bd60d8;hp=574537e88161ca3981c748a7b47ccfcf1e669c1e;hpb=ba5743102096cf8cd08d153b78f5ed120f1dfdd3;p=gdcm.git diff --git a/Example/TestReadWriteReadCompare.cxx b/Example/TestReadWriteReadCompare.cxx index 574537e8..cf484034 100644 --- a/Example/TestReadWriteReadCompare.cxx +++ b/Example/TestReadWriteReadCompare.cxx @@ -28,7 +28,7 @@ int main(int argc, char* argv[]) << "images " << std::endl << " match (as expanded by gdcm)." << std::endl; - int i = 0; + //int i = 0; //while( gdcmDataImages[i] != 0 ) { std::string filename = GDCM_DATA_ROOT; @@ -40,7 +40,7 @@ int main(int argc, char* argv[]) //////////////// Step 1 (see above description): - gdcmHeader *header = new gdcmHeader( filename ); + gdcm::Header *header = new gdcm::Header( filename ); if( !header->IsReadable() ) { std::cerr << "Test::TestReadWriteReadCompare: Image not gdcm compatible:" @@ -52,9 +52,9 @@ int main(int argc, char* argv[]) //////////////// Step 2: - gdcmFile* file = new gdcmFile( header ); + gdcm::File* file = new gdcm::File( header ); int dataSize = file->GetImageDataSize(); - void* imageData = file->GetImageData(); //EXTREMELY IMPORTANT + uint8_t* imageData = file->GetImageData(); //EXTREMELY IMPORTANT // Sure, it is : It's up to the user to decide if he wants to // GetImageData or if he wants to GetImageDataRaw // (even if we do it by setting a flag, he will have to decide) @@ -82,7 +82,7 @@ int main(int argc, char* argv[]) //////////////// Step 3: - gdcmFile* reread = new gdcmFile( "TestReadWriteReadCompare.dcm" ); + gdcm::File* reread = new gdcm::File( "TestReadWriteReadCompare.dcm" ); if( !reread->GetHeader()->IsReadable() ) { std::cerr << "Test::TestReadWriteReadCompare: Could not reread image "