From 8b046691e7cf5ba603b690e5a820869f7aba0bb6 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 16 Apr 2014 11:13:17 +0000 Subject: Clean up sstream include --- src/Float32Data2D.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Float32Data2D.cpp') 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 #include +#include #ifdef _MSC_VER #include @@ -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 -- cgit v1.2.3