summaryrefslogtreecommitdiffstats
path: root/src/Float32Data3D.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:13:17 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:13:17 +0000
commit8b046691e7cf5ba603b690e5a820869f7aba0bb6 (patch)
treef46b1b2ff42e93d1c5a8d99416c6b1c58925184f /src/Float32Data3D.cpp
parent26033e740147510683e499ceda3b52b51cc67e41 (diff)
downloadastra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.tar.gz
astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.tar.bz2
astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.tar.xz
astra-8b046691e7cf5ba603b690e5a820869f7aba0bb6.zip
Clean up sstream include
Diffstat (limited to 'src/Float32Data3D.cpp')
-rw-r--r--src/Float32Data3D.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Float32Data3D.cpp b/src/Float32Data3D.cpp
index 4280b3b..57c72ed 100644
--- a/src/Float32Data3D.cpp
+++ b/src/Float32Data3D.cpp
@@ -27,6 +27,7 @@ $Id$
*/
#include "astra/Float32Data3D.h"
+#include <sstream>
using namespace std;
@@ -52,4 +53,15 @@ bool CFloat32Data3D::_data3DSizesEqual(const CFloat32Data3D * _pA, const CFloat3
return ((_pA->m_iWidth == _pB->m_iWidth) && (_pA->m_iHeight == _pB->m_iHeight) && (_pA->m_iDepth == _pB->m_iDepth));
}
+std::string CFloat32Data3D::description() const
+{
+ std::stringstream res;
+ res << m_iWidth << "x" << m_iHeight << "x" << m_iDepth;
+ if (getType() == CFloat32Data3D::PROJECTION) res << " sinogram data \t";
+ if (getType() == CFloat32Data3D::VOLUME) res << " volume data \t";
+ return res.str();
+}
+//----------------------------------------------------------------------------------------
+
+
} // end namespace astra