X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FTransformDicom3D%2FCreaImage.h;fp=lib%2FTransformDicom3D%2FCreaImage.h;h=aa4e33e4060bcf91da6278cb732b5a414b0dadad;hb=916db8ea8376e6a88a74f2b76b24d6e746041217;hp=0000000000000000000000000000000000000000;hpb=3579beef5bd466705bc0431d7347d1150cdffe97;p=creaImageIO.git diff --git a/lib/TransformDicom3D/CreaImage.h b/lib/TransformDicom3D/CreaImage.h new file mode 100644 index 0000000..aa4e33e --- /dev/null +++ b/lib/TransformDicom3D/CreaImage.h @@ -0,0 +1,33 @@ + +#ifndef __CREA__IMAGE_H_INCLUDED__ +#define __CREA__IMAGE_H_INCLUDED__ + +#include "vtkTransform.h" +#include "vtkImageData.h" +#include "matrixRotation.h" + +class CreaImage +{ +public: + CreaImage(); + ~CreaImage(); + void SetvtkImageData(vtkImageData *image); + void SetImagePositionPatient(double x,double y,double z); + void SetImageSpacing(double sx, double sy, double sz); + void SetImageOrientation(double v1x,double v1y,double v1z, double v2x,double v2y,double v2z); + void Update(); + vtkImageData *GetImage(); + vtkTransform *GetvtkTransform(); + double GetVoxelInIRMUniverse(double x,double y, double z); + double GetVoxelInImageUniverse(double x,double y, double z); + +private: + vtkImageData *orgImage; + matrixRotation *matrixrotation; + vtkTransform *transform; + +protected: + +}; + +#endif // __CREA__IMAGE_H_INCLUDED__