diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2016-01-18 17:47:53 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <wjp@usecode.org> | 2016-01-18 17:47:53 +0100 |
commit | 530aa4f96e9d0fe40ccd0bb9ae1363792a49467c (patch) | |
tree | 41ea934e76ad38f221a38469c6add9152f3a0884 /src/ParallelBeamBlobKernelProjector2D.cpp | |
parent | 34bab2b0caa6ee955d5d2f7882a6cd36cf142536 (diff) | |
parent | fc86917da1a175c04e9bd2e5f0bedb0a48a81c26 (diff) | |
download | astra-530aa4f96e9d0fe40ccd0bb9ae1363792a49467c.tar.gz astra-530aa4f96e9d0fe40ccd0bb9ae1363792a49467c.tar.bz2 astra-530aa4f96e9d0fe40ccd0bb9ae1363792a49467c.tar.xz astra-530aa4f96e9d0fe40ccd0bb9ae1363792a49467c.zip |
Merge pull request #105 from wjp/strings
Replace boost::lexical_cast by stringstreams
Diffstat (limited to 'src/ParallelBeamBlobKernelProjector2D.cpp')
-rw-r--r-- | src/ParallelBeamBlobKernelProjector2D.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ParallelBeamBlobKernelProjector2D.cpp b/src/ParallelBeamBlobKernelProjector2D.cpp index 4559a48..679d5c6 100644 --- a/src/ParallelBeamBlobKernelProjector2D.cpp +++ b/src/ParallelBeamBlobKernelProjector2D.cpp @@ -29,7 +29,6 @@ $Id$ #include "astra/ParallelBeamBlobKernelProjector2D.h" #include <cmath> -#include <boost/lexical_cast.hpp> #include "astra/DataProjectorPolicies.h" @@ -134,17 +133,17 @@ bool CParallelBeamBlobKernelProjector2D::initialize(const Config& _cfg) // Required: KernelSize XMLNode node2 = node.getSingleNode("KernelSize"); ASTRA_CONFIG_CHECK(node2, "BlobProjector", "No Kernel/KernelSize tag specified."); - m_fBlobSize = boost::lexical_cast<float32>(node2.getContent()); + m_fBlobSize = node2.getContentNumerical(); // Required: SampleRate node2 = node.getSingleNode("SampleRate"); ASTRA_CONFIG_CHECK(node2, "BlobProjector", "No Kernel/SampleRate tag specified."); - m_fBlobSampleRate = boost::lexical_cast<float32>(node2.getContent()); + m_fBlobSampleRate = node2.getContentNumerical(); // Required: SampleCount node2 = node.getSingleNode("SampleCount"); ASTRA_CONFIG_CHECK(node2, "BlobProjector", "No Kernel/SampleCount tag specified."); - m_iBlobSampleCount = boost::lexical_cast<int>(node2.getContent()); + m_iBlobSampleCount = node2.getContentInt(); // Required: KernelValues node2 = node.getSingleNode("KernelValues"); |