Program: gdcm
Module: $RCSfile: PrintFile.cxx,v $
Language: C++
- Date: $Date: 2009/03/04 08:57:40 $
- Version: $Revision: 1.92 $
+ Date: $Date: 2010/09/01 14:41:48 $
+ Version: $Revision: 1.94 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New();
f->SetLoadMode(loadMode);
f->SetFileName( fileName );
- f->SetMaxSizeLoadEntry(0xffff);
+ f->SetMaxSizeLoadEntry(0xffff);
for (int ri=0; ri<forceLoadNb; ri++)
{
f->AddForceLoadElement((uint32_t)elemsToForceLoad[2*ri],
(uint32_t)elemsToForceLoad[2*ri+1] );
}
+
// TODO : find why such a polution
// To avoid polluting the output with messages
// 'Last system error was : No such file or directory'
std::cout << " SwapCode= " << f->GetSwapCode() << std::endl;
std::cout << " ------" << std::endl;
+
std::cout << "\n\n" << std::endl;
std::cout << "X spacing " << f->GetXSpacing() << std::endl;
std::cout << "Y spacing " << f->GetYSpacing() << std::endl;
std::cout << "Z spacing " << f->GetZSpacing() << std::endl;
-
+
//------------------------------
// Let's get and print some usefull fields about 'Orientation'
<< strImagePositionPatientRET << "]" << std::endl;
float iop[6];
- /*bool riop = */f->GetImageOrientationPatient(iop);
+ //bool riop =
+ f->GetImageOrientationPatient(iop);
float ipp[3];
- /*bool ripp = */f->GetImagePositionPatient(ipp);
+ //bool ripp =
+ f->GetImagePositionPatient(ipp);
std::cout << "Image Position (0x0020,0x0032|0x0030) : "
<< ipp[0] << " , " << ipp[1] << " , "<< ipp[2]
{
if (load) // just to see warning messages at load time !
{
- uint8_t *pixels = fh->GetImageData(); (void)pixels;
+ uint8_t *pixels = fh->GetImageData(); (void)pixels;
uint32_t lgth = fh->GetImageDataSize(); (void)lgth;
}