Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/VolumeImageGeometry.h @ 689:93a8949a1ef7
VolumeImageGeometry::DetectSlice()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 May 2019 18:33:57 +0200 |
parents | 7719eb852dd5 |
children |
comparison
equal
deleted
inserted
replaced
685:ea1a5b963798 | 689:93a8949a1ef7 |
---|---|
72 const CoordinateSystem3D& GetSagittalGeometry() const | 72 const CoordinateSystem3D& GetSagittalGeometry() const |
73 { | 73 { |
74 return sagittalGeometry_; | 74 return sagittalGeometry_; |
75 } | 75 } |
76 | 76 |
77 const CoordinateSystem3D& GetProjectionGeometry(VolumeProjection projection) const; | |
78 | |
79 const Matrix& GetTransform() const | |
80 { | |
81 return transform_; | |
82 } | |
83 | |
84 const Matrix& GetTransformInverse() const | |
85 { | |
86 return transformInverse_; | |
87 } | |
88 | |
77 void SetSize(unsigned int width, | 89 void SetSize(unsigned int width, |
78 unsigned int height, | 90 unsigned int height, |
79 unsigned int depth); | 91 unsigned int depth); |
80 | 92 |
81 // Set the geometry of the first axial slice (i.e. the one whose | 93 // Set the geometry of the first axial slice (i.e. the one whose |
86 double y, | 98 double y, |
87 double z); | 99 double z); |
88 | 100 |
89 Vector GetVoxelDimensions(VolumeProjection projection) const; | 101 Vector GetVoxelDimensions(VolumeProjection projection) const; |
90 | 102 |
91 void GetSliceSize(unsigned int& width, | 103 unsigned int GetProjectionWidth(VolumeProjection projection) const; |
92 unsigned int& height, | 104 |
93 VolumeProjection projection); | 105 unsigned int GetProjectionHeight(VolumeProjection projection) const; |
94 | 106 |
107 unsigned int GetProjectionDepth(VolumeProjection projection) const; | |
108 | |
95 // Get the 3D position of a point in the volume, where x, y and z | 109 // Get the 3D position of a point in the volume, where x, y and z |
96 // lie in the [0;1] range | 110 // lie in the [0;1] range |
97 Vector GetCoordinates(float x, | 111 Vector GetCoordinates(float x, |
98 float y, | 112 float y, |
99 float z) const; | 113 float z) const; |
100 | 114 |
101 bool DetectProjection(VolumeProjection& projection, | 115 bool DetectProjection(VolumeProjection& projection, |
102 const CoordinateSystem3D& plane) const; | 116 const Vector& planeNormal) const; |
117 | |
118 bool DetectSlice(VolumeProjection& projection, | |
119 unsigned int& slice, | |
120 const CoordinateSystem3D& plane) const; | |
103 }; | 121 }; |
104 } | 122 } |