Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
- gdcm::FileHelper *fh1 = new gdcm::FileHelper(f1);
- uint8_t *pixels = fh1->GetImageData();
- uint32_t lgth = fh1->GetImageDataSize();
+ gdcm::FileHelper *fh = new gdcm::FileHelper(f);
+ uint8_t *pixels = fh->GetImageData();
+ uint32_t lgth = fh->GetImageDataSize();
// just to see if it's stored a the right place
sqi->InsertValEntry( "128", 0x0028,0x0011);
// just to see if it's stored a the right place
sqi->InsertValEntry( "128", 0x0028,0x0011);
<< "Read : " << sqi->GetValEntry(0x0028,0x0010)->GetValue()
<< " - Expected : 128" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0010)->GetValue()
<< " - Expected : 128" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0011)->GetValue()
<< " - Expected : 128" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0011)->GetValue()
<< " - Expected : 128" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0100)->GetValue()
<< " - Expected : 8" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0100)->GetValue()
<< " - Expected : 8" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0101)->GetValue()
<< " - Expected : 8" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0101)->GetValue()
<< " - Expected : 8" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0102)->GetValue()
<< " - Expected : 7" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0102)->GetValue()
<< " - Expected : 7" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0103)->GetValue()
<< " - Expected : 0" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0028,0x0103)->GetValue()
<< " - Expected : 0" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0005,0x0010)->GetLength()
<< " - Expected : 6" << std::endl
<< " ... Failed" << std::endl;
<< "Read : " << sqi->GetValEntry(0x0005,0x0010)->GetLength()
<< " - Expected : 6" << std::endl
<< " ... Failed" << std::endl;