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
/*
if (0) { // Just to keep the code for further use
std::cout <<std::endl << "-------- Test gdcmFile ------" <<std::endl;
/*
if (0) { // Just to keep the code for further use
std::cout <<std::endl << "-------- Test gdcmFile ------" <<std::endl;
std::cout << "Sorry, not a DICOM / ACR File" <<std::endl;
exit(0);
}
std::cout << std::endl << "----------------------> after new gdcmFile"
<< std::endl;
std::cout << "Sorry, not a DICOM / ACR File" <<std::endl;
exit(0);
}
std::cout << std::endl << "----------------------> after new gdcmFile"
<< std::endl;
- f1 = new gdcm::FileHelper(e1);
- dataSize = f1->GetImageDataSize();
- imageData= f1->GetImageData();
+ fh = new gdcm::FileHelper(f);
+ dataSize = fh->GetImageDataSize();
+ imageData= fh->GetImageData();
std::cout <<std::endl <<" dataSize " << dataSize << std::endl;
int nX,nY,nZ,sPP,planarConfig;
std::string pixelType, transferSyntaxName;
std::cout <<std::endl <<" dataSize " << dataSize << std::endl;
int nX,nY,nZ,sPP,planarConfig;
std::string pixelType, transferSyntaxName;
- pixelType = e1->GetPixelType();
- sPP = e1->GetSamplesPerPixel();
- planarConfig = e1->GetPlanarConfiguration();
+ pixelType = f->GetPixelType();
+ sPP = f->GetSamplesPerPixel();
+ planarConfig = f->GetPlanarConfiguration();
std::cout << " pixelType=" << pixelType
<< " SampleserPixel=" << sPP
<< " PlanarConfiguration=" << planarConfig
<< " PhotometricInterpretation="
std::cout << " pixelType=" << pixelType
<< " SampleserPixel=" << sPP
<< " PlanarConfiguration=" << planarConfig
<< " PhotometricInterpretation="
&& transferSyntaxName != "Uncompressed ACR-NEMA" ) {
std::cout << std::endl << "==========================================="
<< std::endl;
&& transferSyntaxName != "Uncompressed ACR-NEMA" ) {
std::cout << std::endl << "==========================================="
<< std::endl;