summaryrefslogtreecommitdiffstats
path: root/src/Float32ProjectionData3DMemory.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-22 14:16:06 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-22 14:16:06 +0000
commit01e94c82d907b8d6aa155affc01160396e794b31 (patch)
treeac340f65b197ea6db3811d8f9f02ac0ca1fb6035 /src/Float32ProjectionData3DMemory.cpp
parentb4324c3d3ee5e27c271a4965680d3bf1fee81827 (diff)
downloadastra-01e94c82d907b8d6aa155affc01160396e794b31.tar.gz
astra-01e94c82d907b8d6aa155affc01160396e794b31.tar.bz2
astra-01e94c82d907b8d6aa155affc01160396e794b31.tar.xz
astra-01e94c82d907b8d6aa155affc01160396e794b31.zip
Add mxarray/link functionality for 3d volumes
Diffstat (limited to 'src/Float32ProjectionData3DMemory.cpp')
-rw-r--r--src/Float32ProjectionData3DMemory.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Float32ProjectionData3DMemory.cpp b/src/Float32ProjectionData3DMemory.cpp
index 4d23688..6d89f95 100644
--- a/src/Float32ProjectionData3DMemory.cpp
+++ b/src/Float32ProjectionData3DMemory.cpp
@@ -70,6 +70,15 @@ CFloat32ProjectionData3DMemory::CFloat32ProjectionData3DMemory(CProjectionGeomet
}
//----------------------------------------------------------------------------------------
+// Create an instance of the CFloat32ProjectionData2D class with pre-allocated data
+CFloat32ProjectionData3DMemory::CFloat32ProjectionData3DMemory(CProjectionGeometry3D* _pGeometry, CFloat32CustomMemory* _pCustomMemory)
+{
+ m_bInitialized = false;
+ m_bInitialized = initialize(_pGeometry, _pCustomMemory);
+}
+
+
+//----------------------------------------------------------------------------------------
// Initialization
bool CFloat32ProjectionData3DMemory::initialize(CProjectionGeometry3D* _pGeometry)
{
@@ -104,6 +113,15 @@ bool CFloat32ProjectionData3DMemory::initialize(CProjectionGeometry3D* _pGeometr
return m_bInitialized;
}
+//----------------------------------------------------------------------------------------
+// Initialization
+bool CFloat32ProjectionData3DMemory::initialize(CProjectionGeometry3D* _pGeometry, CFloat32CustomMemory* _pCustomMemory)
+{
+ m_pGeometry = _pGeometry->clone();
+ m_bInitialized = _initialize(m_pGeometry->getDetectorColCount(), m_pGeometry->getProjectionCount(), m_pGeometry->getDetectorRowCount(), _pCustomMemory);
+ return m_bInitialized;
+}
+
//----------------------------------------------------------------------------------------
// Destructor