summaryrefslogtreecommitdiffstats
path: root/include/astra/Float32ProjectionData2D.h
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-04-09 15:44:01 +0200
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-04-09 15:44:01 +0200
commit1b32573046f33050b9300324e6c74e10abb6caaf (patch)
treec211a5d749faabfbe36fa4b93dd3482328fc4715 /include/astra/Float32ProjectionData2D.h
parent3042b1369a96eef4798ea4280dd7aa1a8be2fcca (diff)
downloadastra-1b32573046f33050b9300324e6c74e10abb6caaf.tar.gz
astra-1b32573046f33050b9300324e6c74e10abb6caaf.tar.bz2
astra-1b32573046f33050b9300324e6c74e10abb6caaf.tar.xz
astra-1b32573046f33050b9300324e6c74e10abb6caaf.zip
Add 'link' feature to Python (for 2D and 3D data)
Diffstat (limited to 'include/astra/Float32ProjectionData2D.h')
-rw-r--r--include/astra/Float32ProjectionData2D.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/astra/Float32ProjectionData2D.h b/include/astra/Float32ProjectionData2D.h
index 7461491..bb99f4b 100644
--- a/include/astra/Float32ProjectionData2D.h
+++ b/include/astra/Float32ProjectionData2D.h
@@ -101,6 +101,19 @@ public:
* Copy constructor
*/
CFloat32ProjectionData2D(const CFloat32ProjectionData2D& _other);
+
+ /** Constructor. Create an instance of the CFloat32ProjectionData2D class with pre-allocated memory.
+ *
+ * Creates an instance of the CFloat32ProjectionData2D 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
+ *
+ */
+ CFloat32ProjectionData2D(CProjectionGeometry2D* _pGeometry, CFloat32CustomMemory* _pCustomMemory);
/**
* Assignment operator
@@ -148,6 +161,18 @@ public:
* @param _fScalar scalar value to be put at each index.
*/
bool initialize(CProjectionGeometry2D* _pGeometry, float32 _fScalar);
+
+ /** Initialization. Initializes an instance of the CFloat32ProjectionData2D 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(CProjectionGeometry2D* _pGeometry, CFloat32CustomMemory* _pCustomMemory);
/** Get the number of detectors.
*