- // just to be able to grep the display result, for some usefull info
- std::cout << filename
- << " TransferSyntaxName= [" << e1->GetTransferSyntaxName()
- << "] SwapCode = " << e1->GetSwapCode()
- << " PhotometricInterpretation="
- << e1->GetEntryValue(0x0028,0x0004)
- << " pixelType=" << e1->GetPixelType()
- << " SamplesPerPixel=" << e1->GetSamplesPerPixel()
- << " PlanarConfiguration=" << e1->GetPlanarConfiguration();
+ pixelType = e1->GetPixelType();
+ std::cout << " pixelType=" << pixelType;
+ if (pixelType == "8U" || pixelType == "8S" )
+ std::cout << " ";
+ std::cout << " Smpl.P.Pix.=" << e1->GetSamplesPerPixel()
+ << " Plan.Config.=" << e1->GetPlanarConfiguration();
+ photomInterp = e1->GetEntryValue(0x0028,0x0004);
+
+ std::cout << " Photom.Interp.=" << photomInterp;
+ for (j=0; j<l-photomInterp.length(); j++)
+ std::cout << " ";
+
+ std::cout << " TransferSyntaxName= [" << e1->GetTransferSyntaxName() << "]" ;
+ swapC = e1->GetSwapCode();
+ if (swapC != 1234)
+ std::cout << " SwapCode = " << e1->GetSwapCode();