X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.h;h=b0c6dccf937d2175197c3ef618be9b863a5ebe19;hb=5a7f506da1ee16d6e742c4e95f7f1b09826d8980;hp=efd05fb60be201868b8e49aaf501904664af4557;hpb=e5d7cdb69582d29304420027f897a7b6e5303941;p=gdcm.git diff --git a/src/gdcmFile.h b/src/gdcmFile.h index efd05fb6..b0c6dccf 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.h,v $ Language: C++ - Date: $Date: 2006/05/30 08:18:50 $ - Version: $Revision: 1.128 $ + Date: $Date: 2007/05/23 16:48:59 $ + Version: $Revision: 1.132 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -24,7 +24,7 @@ #include "gdcmTagKey.h" -namespace gdcm +namespace GDCM_NAME_SPACE { class RLEFramesInfo; @@ -120,7 +120,8 @@ public: int GetYSize(); int GetZSize(); int GetTSize(); // unnormalized in DICOM V3 - + + bool GetSpacing(float &xspacing, float &yspacing, float &zspacing); float GetXSpacing(); float GetYSpacing(); float GetZSpacing(); @@ -128,9 +129,17 @@ public: float GetXOrigin(); float GetYOrigin(); float GetZOrigin(); - + + float GetXCosineOnX(); + float GetXCosineOnY(); + float GetXCosineOnZ(); + float GetYCosineOnX(); + float GetYCosineOnY(); + float GetYCosineOnZ(); + bool GetImageOrientationPatient( float iop[6] ); - + bool GetImagePositionPatient( float ipp[3] ); + int GetBitsStored(); int GetBitsAllocated(); int GetHighBitPosition(); @@ -148,8 +157,9 @@ public: int GetLUTNbits(); // For rescaling graylevel: - float GetRescaleIntercept(); - float GetRescaleSlope(); + bool GetRescaleSlopeIntercept(double &slope, double &intercept); + double GetRescaleIntercept(); + double GetRescaleSlope(); int GetNumberOfScalarComponents(); int GetNumberOfScalarComponentsRaw();