diff options
author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-06-24 20:30:52 +0200 |
---|---|---|
committer | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-06-24 20:30:52 +0200 |
commit | 26713deae284d6bb793b728c7af2db28a7484054 (patch) | |
tree | ff7379d3659db5411f291575fb88077c4af5b47a /src/ParallelProjectionGeometry2D.cpp | |
parent | 63d78fbaafa7d247347f9052db86f575d89260b7 (diff) | |
download | astra-26713deae284d6bb793b728c7af2db28a7484054.tar.gz astra-26713deae284d6bb793b728c7af2db28a7484054.tar.bz2 astra-26713deae284d6bb793b728c7af2db28a7484054.tar.xz astra-26713deae284d6bb793b728c7af2db28a7484054.zip |
Include ExtraDetectorOffset in returned configuration
Diffstat (limited to 'src/ParallelProjectionGeometry2D.cpp')
-rw-r--r-- | src/ParallelProjectionGeometry2D.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ParallelProjectionGeometry2D.cpp b/src/ParallelProjectionGeometry2D.cpp index 699e141..5f51d08 100644 --- a/src/ParallelProjectionGeometry2D.cpp +++ b/src/ParallelProjectionGeometry2D.cpp @@ -180,6 +180,9 @@ Config* CParallelProjectionGeometry2D::getConfiguration() const cfg->self.addChildNode("DetectorCount", getDetectorCount()); cfg->self.addChildNode("DetectorWidth", getDetectorWidth()); cfg->self.addChildNode("ProjectionAngles", m_pfProjectionAngles, m_iProjectionAngleCount); + XMLNode opt = cfg->self.addChildNode("Option"); + opt.addAttribute("key","ExtraDetectorOffset"); + opt.setContent(m_pfExtraDetectorOffset, m_iProjectionAngleCount); return cfg; } //---------------------------------------------------------------------------------------- |