Program: gdcm
Module: $RCSfile: TestPrintAllDocument.cxx,v $
Language: C++
- Date: $Date: 2007/06/21 14:59:06 $
- Version: $Revision: 1.14 $
+ Date: $Date: 2007/06/22 11:01:58 $
+ Version: $Revision: 1.17 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
int swapC;
unsigned int j;
std::string pixelType, photomInterp;
- int l;
+ unsigned int l;
l = strlen("PALETTE COLOR ");
//gdcm::Debug::DebugOn();
std::cout << " ";
std::cout << " Smpl.P.Pix.=" << f->GetSamplesPerPixel()
<< " Plan.Config.=" << f->GetPlanarConfiguration();
-
+
photomInterp = f->GetEntryString(0x0028,0x0004);
- std::cout << " Photom.Interp.=" << photomInterp;
- for (j=0; j<l-photomInterp.length(); j++)
- std::cout << " ";
+ std::cout << " Photom.Interp.=" << photomInterp << " l : " << l <<"length : " << photomInterp.length()<< std::endl;
+
+ if (l > photomInterp.length())
+ for (j=0; j<l-photomInterp.length(); j++)
+ std::cout << " ";
std::cout << " TransferSyntaxName= [" << f->GetTransferSyntaxName() << "]" ;