Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/OrientedBoundingBox.cpp @ 684:7719eb852dd5
new class: VolumeImageGeometry
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 May 2019 16:47:46 +0200 |
parents | b70e9be013e4 |
children | c3bbb130abc4 |
comparison
equal
deleted
inserted
replaced
683:dbc1d8bfc68a | 684:7719eb852dd5 |
---|---|
35 if (n < 1) | 35 if (n < 1) |
36 { | 36 { |
37 throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageSize); | 37 throw Orthanc::OrthancException(Orthanc::ErrorCode_IncompatibleImageSize); |
38 } | 38 } |
39 | 39 |
40 const CoordinateSystem3D& geometry = image.GetAxialGeometry(); | 40 const CoordinateSystem3D& geometry = image.GetGeometry().GetAxialGeometry(); |
41 Vector dim = image.GetVoxelDimensions(VolumeProjection_Axial); | 41 Vector dim = image.GetGeometry().GetVoxelDimensions(VolumeProjection_Axial); |
42 | 42 |
43 u_ = geometry.GetAxisX(); | 43 u_ = geometry.GetAxisX(); |
44 v_ = geometry.GetAxisY(); | 44 v_ = geometry.GetAxisY(); |
45 w_ = geometry.GetNormal(); | 45 w_ = geometry.GetNormal(); |
46 | 46 |