Mercurial > hg > orthanc-stone
diff UnitTestsSources/UnitTestsMain.cpp @ 165:8d50e6be565d wasm
LinearAlgebra toolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Feb 2018 13:51:29 +0100 |
parents | 432b1f812d14 |
children | ab9c799f5de1 |
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp Wed Feb 14 16:49:43 2018 +0100 +++ b/UnitTestsSources/UnitTestsMain.cpp Thu Feb 15 13:51:29 2018 +0100 @@ -365,10 +365,13 @@ // Image plane that led to these parameters, with principal point at // (256,256). The image has dimensions 512x512. - OrthancStone::Vector o, ax, ay; - OrthancStone::LinearAlgebra::AssignVector(o, 7.009620, 2.521030, -821.942000); - OrthancStone::LinearAlgebra::AssignVector(ax, -0.453219, 0.891399, -0.001131 ); - OrthancStone::LinearAlgebra::AssignVector(ay, -0.891359, -0.453210, -0.008992); + OrthancStone::Vector o = + OrthancStone::LinearAlgebra::CreateVector(7.009620, 2.521030, -821.942000); + OrthancStone::Vector ax = + OrthancStone::LinearAlgebra::CreateVector(-0.453219, 0.891399, -0.001131); + OrthancStone::Vector ay = + OrthancStone::LinearAlgebra::CreateVector(-0.891359, -0.453210, -0.008992); + OrthancStone::CoordinateSystem3D imagePlane(o, ax, ay); // Back-projection of the principal point