diff options
author | Willem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:13:17 +0000 |
---|---|---|
committer | wpalenst <WillemJan.Palenstijn@uantwerpen.be> | 2014-04-16 11:13:17 +0000 |
commit | 8b046691e7cf5ba603b690e5a820869f7aba0bb6 (patch) | |
tree | f46b1b2ff42e93d1c5a8d99416c6b1c58925184f /src/Float32Data2D.cpp | |
parent | 26033e740147510683e499ceda3b52b51cc67e41 (diff) | |
download | astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.tar.gz astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.tar.bz2 astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.tar.xz astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.zip |
Clean up sstream include
Diffstat (limited to 'src/Float32Data2D.cpp')
-rw-r--r-- | src/Float32Data2D.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Float32Data2D.cpp b/src/Float32Data2D.cpp index e51935f..ae84716 100644 --- a/src/Float32Data2D.cpp +++ b/src/Float32Data2D.cpp @@ -29,6 +29,7 @@ $Id$ #include "astra/Float32Data2D.h" #include <iostream> #include <cstring> +#include <sstream> #ifdef _MSC_VER #include <malloc.h> @@ -518,6 +519,16 @@ CFloat32Data2D& CFloat32Data2D::operator-=(const float32& f) } +std::string CFloat32Data2D::description() const +{ + std::stringstream res; + res << m_iWidth << "x" << m_iHeight; + if (getType() == CFloat32Data2D::PROJECTION) res << " sinogram data \t"; + if (getType() == CFloat32Data2D::VOLUME) res << " volume data \t"; + return res.str(); +} + + } // end namespace astra |