Mercurial > hg > orthanc-stone
diff Framework/Toolbox/ShearWarpProjectiveTransform.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 | 9a474e90e832 |
line wrap: on
line diff
--- a/Framework/Toolbox/ShearWarpProjectiveTransform.cpp Thu May 16 16:01:36 2019 +0200 +++ b/Framework/Toolbox/ShearWarpProjectiveTransform.cpp Thu May 16 16:47:46 2019 +0200 @@ -380,8 +380,8 @@ // Compute the "world" matrix that maps the source volume to the // (0,0,0)->(1,1,1) unit cube - Vector origin = source.GetCoordinates(0, 0, 0); - Vector ps = source.GetVoxelDimensions(VolumeProjection_Axial); + Vector origin = source.GetGeometry().GetCoordinates(0, 0, 0); + Vector ps = source.GetGeometry().GetVoxelDimensions(VolumeProjection_Axial); Matrix world = LinearAlgebra::Product( GeometryToolbox::CreateScalingMatrix(1.0 / ps[0], 1.0 / ps[1], 1.0 / ps[2]), GeometryToolbox::CreateTranslationMatrix(-origin[0], -origin[1], -origin[2]));