diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2015-06-26 12:00:20 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2015-06-26 12:00:20 +0200 |
commit | 62f3aa5792011792db866ce0841c8d164aa9a34d (patch) | |
tree | 8f494a765a3607afd1c9bac9c592f30536b950a1 /src/ParallelProjectionGeometry2D.cpp | |
parent | 8ad46dc9cb28067047838e06770707cf86ef6e56 (diff) | |
parent | 9e3472ea9041b8755050427d8bdb8a4701019c55 (diff) | |
download | astra-62f3aa5792011792db866ce0841c8d164aa9a34d.tar.gz astra-62f3aa5792011792db866ce0841c8d164aa9a34d.tar.bz2 astra-62f3aa5792011792db866ce0841c8d164aa9a34d.tar.xz astra-62f3aa5792011792db866ce0841c8d164aa9a34d.zip |
Merge pull request #76 from dmpelt/projector-configuration-fix
Configuration fixes
Diffstat (limited to 'src/ParallelProjectionGeometry2D.cpp')
-rw-r--r-- | src/ParallelProjectionGeometry2D.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ParallelProjectionGeometry2D.cpp b/src/ParallelProjectionGeometry2D.cpp index 699e141..7260b83 100644 --- a/src/ParallelProjectionGeometry2D.cpp +++ b/src/ParallelProjectionGeometry2D.cpp @@ -180,6 +180,11 @@ Config* CParallelProjectionGeometry2D::getConfiguration() const cfg->self.addChildNode("DetectorCount", getDetectorCount()); cfg->self.addChildNode("DetectorWidth", getDetectorWidth()); cfg->self.addChildNode("ProjectionAngles", m_pfProjectionAngles, m_iProjectionAngleCount); + if(m_pfExtraDetectorOffset!=NULL){ + XMLNode opt = cfg->self.addChildNode("Option"); + opt.addAttribute("key","ExtraDetectorOffset"); + opt.setContent(m_pfExtraDetectorOffset, m_iProjectionAngleCount); + } return cfg; } //---------------------------------------------------------------------------------------- |