summaryrefslogtreecommitdiffstats
path: root/src/ArtAlgorithm.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-05-08 14:12:53 +0200
committerWillem Jan Palenstijn <wjp@usecode.org>2015-05-08 14:12:53 +0200
commit99f46882982b92c632869053ae0dd416312b02ff (patch)
tree539252314daa42411d053e926134b289a750f14c /src/ArtAlgorithm.cpp
parent63307fca7a82bfea7592d9c8d3a359333e622495 (diff)
parentfff7470f1d74b0085355130350fa834ea8d37069 (diff)
downloadastra-99f46882982b92c632869053ae0dd416312b02ff.tar.gz
astra-99f46882982b92c632869053ae0dd416312b02ff.tar.bz2
astra-99f46882982b92c632869053ae0dd416312b02ff.tar.xz
astra-99f46882982b92c632869053ae0dd416312b02ff.zip
Merge pull request #61 from wjp/xmlnode_cleanup
Clean up XMLNode
Diffstat (limited to 'src/ArtAlgorithm.cpp')
-rw-r--r--src/ArtAlgorithm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ArtAlgorithm.cpp b/src/ArtAlgorithm.cpp
index 8f058a3..6a699ec 100644
--- a/src/ArtAlgorithm.cpp
+++ b/src/ArtAlgorithm.cpp
@@ -132,7 +132,7 @@ bool CArtAlgorithm::initialize(const Config& _cfg)
}
// ray order
- string projOrder = _cfg.self->getOption("RayOrder", "sequential");
+ string projOrder = _cfg.self.getOption("RayOrder", "sequential");
CC.markOptionParsed("RayOrder");
m_iCurrentRay = 0;
m_iRayCount = m_pProjector->getProjectionGeometry()->getProjectionAngleCount() *
@@ -145,7 +145,7 @@ bool CArtAlgorithm::initialize(const Config& _cfg)
m_piDetectorOrder[i] = i % m_pProjector->getProjectionGeometry()->getDetectorCount();
}
} else if (projOrder == "custom") {
- vector<float32> rayOrderList = _cfg.self->getOptionNumericalArray("RayOrderList");
+ vector<float32> rayOrderList = _cfg.self.getOptionNumericalArray("RayOrderList");
m_iRayCount = rayOrderList.size() / 2;
m_piProjectionOrder = new int[m_iRayCount];
m_piDetectorOrder = new int[m_iRayCount];
@@ -158,7 +158,7 @@ bool CArtAlgorithm::initialize(const Config& _cfg)
return false;
}
- m_fLambda = _cfg.self->getOptionNumerical("Lambda", 1.0f);
+ m_fLambda = _cfg.self.getOptionNumerical("Lambda", 1.0f);
CC.markOptionParsed("Lambda");
// success