summaryrefslogtreecommitdiffstats
path: root/include/astra/Float32ProjectionData3DMemory.h
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 /include/astra/Float32ProjectionData3DMemory.h
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 'include/astra/Float32ProjectionData3DMemory.h')
-rw-r--r--include/astra/Float32ProjectionData3DMemory.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/astra/Float32ProjectionData3DMemory.h b/include/astra/Float32ProjectionData3DMemory.h
index 8b61d45..fb54425 100644
--- a/include/astra/Float32ProjectionData3DMemory.h
+++ b/include/astra/Float32ProjectionData3DMemory.h
@@ -98,6 +98,19 @@ public:
*/
CFloat32ProjectionData3DMemory(CProjectionGeometry3D* _pGeometry, float32 _fScalar);
+ /** Constructor. Create an instance of the CFloat32ProjectionData3DMemory class with pre-allocated memory.
+ *
+ * Creates an instance of the CFloat32ProjectionData3DMemory class. Memory
+ * is pre-allocated and passed via the abstract CFloat32CustomMemory handle
+ * class. The handle will be deleted when the memory can be freed.
+ * You should override the destructor to provide custom behaviour on free.
+ *
+ * @param _pGeometry Projection Geometry object. This object will be HARDCOPIED into this class.
+ * @param _pCustomMemory custom memory handle
+ *
+ */
+ CFloat32ProjectionData3DMemory(CProjectionGeometry3D* _pGeometry, CFloat32CustomMemory* _pCustomMemory);
+
/**
* Destructor.
*/
@@ -140,6 +153,20 @@ public:
*/
bool initialize(CProjectionGeometry3D* _pGeometry, const float32* _pfData);
+ /** Initialization. Initializes an instance of the CFloat32ProjectionData3DMemory class with pre-allocated memory.
+ *
+ * Memory is pre-allocated and passed via the abstract CFloat32CustomMemory handle
+ * class. The handle will be deleted when the memory can be freed.
+ * You should override the destructor to provide custom behaviour on free.
+ *
+ * @param _pGeometry Projection Geometry object. This object will be HARDCOPIED into this class.
+ * @param _pCustomMemory custom memory handle
+ *
+ */
+ bool initialize(CProjectionGeometry3D* _pGeometry, CFloat32CustomMemory* _pCustomMemory);
+
+
+
/** Fetch a COPY of a projection of the data. Note that if you update the 2D data slice, the data in the
* 3D data object will remain unaltered. To copy the data back in the 3D-volume you must return the data by calling 'returnProjection'.
*