diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-03-03 13:11:49 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-03-03 13:24:11 +0100 |
commit | d908869566862da4632a84c65474dd056e3fd749 (patch) | |
tree | c4df31e37b55c11ad75cb6a33e55d92f2b6e179f /src/ConeVecProjectionGeometry3D.cpp | |
parent | e468c6c546dbb4d9665ccb95b1571a160753d50e (diff) | |
download | astra-d908869566862da4632a84c65474dd056e3fd749.tar.gz astra-d908869566862da4632a84c65474dd056e3fd749.tar.bz2 astra-d908869566862da4632a84c65474dd056e3fd749.tar.xz astra-d908869566862da4632a84c65474dd056e3fd749.zip |
Fix getConfiguration for vec geometries and non-square detectors
Diffstat (limited to 'src/ConeVecProjectionGeometry3D.cpp')
-rw-r--r-- | src/ConeVecProjectionGeometry3D.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ConeVecProjectionGeometry3D.cpp b/src/ConeVecProjectionGeometry3D.cpp index a4bd22d..ea295d4 100644 --- a/src/ConeVecProjectionGeometry3D.cpp +++ b/src/ConeVecProjectionGeometry3D.cpp @@ -218,9 +218,9 @@ Config* CConeVecProjectionGeometry3D::getConfiguration() const vectors += boost::lexical_cast<string>(p.fSrcX) + ","; vectors += boost::lexical_cast<string>(p.fSrcY) + ","; vectors += boost::lexical_cast<string>(p.fSrcZ) + ","; - vectors += boost::lexical_cast<string>(p.fDetSX + 0.5f*m_iDetectorRowCount*p.fDetUX + 0.5f*m_iDetectorColCount*p.fDetVX) + ","; - vectors += boost::lexical_cast<string>(p.fDetSY + 0.5f*m_iDetectorRowCount*p.fDetUY + 0.5f*m_iDetectorColCount*p.fDetVY) + ","; - vectors += boost::lexical_cast<string>(p.fDetSZ + 0.5f*m_iDetectorRowCount*p.fDetUZ + 0.5f*m_iDetectorColCount*p.fDetVZ) + ","; + vectors += boost::lexical_cast<string>(p.fDetSX + 0.5f*m_iDetectorRowCount*p.fDetVX + 0.5f*m_iDetectorColCount*p.fDetUX) + ","; + vectors += boost::lexical_cast<string>(p.fDetSY + 0.5f*m_iDetectorRowCount*p.fDetVY + 0.5f*m_iDetectorColCount*p.fDetUY) + ","; + vectors += boost::lexical_cast<string>(p.fDetSZ + 0.5f*m_iDetectorRowCount*p.fDetVZ + 0.5f*m_iDetectorColCount*p.fDetUZ) + ","; vectors += boost::lexical_cast<string>(p.fDetUX) + ","; vectors += boost::lexical_cast<string>(p.fDetUY) + ","; vectors += boost::lexical_cast<string>(p.fDetUZ) + ","; |