summaryrefslogtreecommitdiffstats
path: root/src/CudaRoiSelectAlgorithm.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/CudaRoiSelectAlgorithm.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/CudaRoiSelectAlgorithm.cpp')
-rw-r--r--src/CudaRoiSelectAlgorithm.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/CudaRoiSelectAlgorithm.cpp b/src/CudaRoiSelectAlgorithm.cpp
index bfccb3a..7635c69 100644
--- a/src/CudaRoiSelectAlgorithm.cpp
+++ b/src/CudaRoiSelectAlgorithm.cpp
@@ -66,22 +66,21 @@ bool CCudaRoiSelectAlgorithm::initialize(const Config& _cfg)
ConfigStackCheck<CAlgorithm> CC("CudaDartMaskAlgorithm", this, _cfg);
// reconstruction data
- XMLNode* node = _cfg.self->getSingleNode("DataId");
+ XMLNode node = _cfg.self.getSingleNode("DataId");
ASTRA_CONFIG_CHECK(node, "CudaRoiSelect", "No DataId tag specified.");
- int id = boost::lexical_cast<int>(node->getContent());
+ int id = boost::lexical_cast<int>(node.getContent());
m_pData = dynamic_cast<CFloat32VolumeData2D*>(CData2DManager::getSingleton().get(id));
- ASTRA_DELETE(node);
CC.markNodeParsed("DataId");
// Option: GPU number
- m_iGPUIndex = (int)_cfg.self->getOptionNumerical("GPUindex", -1);
- m_iGPUIndex = (int)_cfg.self->getOptionNumerical("GPUIndex", m_iGPUIndex);
+ m_iGPUIndex = (int)_cfg.self.getOptionNumerical("GPUindex", -1);
+ m_iGPUIndex = (int)_cfg.self.getOptionNumerical("GPUIndex", m_iGPUIndex);
CC.markOptionParsed("GPUindex");
- if (!_cfg.self->hasOption("GPUindex"))
+ if (!_cfg.self.hasOption("GPUindex"))
CC.markOptionParsed("GPUIndex");
// Option: Radius
- m_fRadius = (unsigned int)_cfg.self->getOptionNumerical("Radius", 0.0f);
+ m_fRadius = (unsigned int)_cfg.self.getOptionNumerical("Radius", 0.0f);
CC.markOptionParsed("Radius");
_check();