summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-06-24 20:30:52 +0200
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-06-24 20:30:52 +0200
commit26713deae284d6bb793b728c7af2db28a7484054 (patch)
treeff7379d3659db5411f291575fb88077c4af5b47a
parent63d78fbaafa7d247347f9052db86f575d89260b7 (diff)
downloadastra-26713deae284d6bb793b728c7af2db28a7484054.tar.gz
astra-26713deae284d6bb793b728c7af2db28a7484054.tar.bz2
astra-26713deae284d6bb793b728c7af2db28a7484054.tar.xz
astra-26713deae284d6bb793b728c7af2db28a7484054.zip
Include ExtraDetectorOffset in returned configuration
-rw-r--r--src/ParallelProjectionGeometry2D.cpp3
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;
}
//----------------------------------------------------------------------------------------