summaryrefslogtreecommitdiffstats
path: root/matlab/mex
diff options
context:
space:
mode:
authorWim van Aarle <wimvanaarle@gmail.com>2015-03-03 18:22:23 +0100
committerWim van Aarle <wimvanaarle@gmail.com>2015-03-03 18:22:23 +0100
commita452bc6f1c450a7174ec257d052dfe3ce25b1623 (patch)
tree95da84f485a0235f4cf049717f953909f6bf3f37 /matlab/mex
parente468c6c546dbb4d9665ccb95b1571a160753d50e (diff)
downloadastra-a452bc6f1c450a7174ec257d052dfe3ce25b1623.tar.gz
astra-a452bc6f1c450a7174ec257d052dfe3ce25b1623.tar.bz2
astra-a452bc6f1c450a7174ec257d052dfe3ce25b1623.tar.xz
astra-a452bc6f1c450a7174ec257d052dfe3ce25b1623.zip
created parallel_vec geometry class
Diffstat (limited to 'matlab/mex')
-rw-r--r--matlab/mex/astra_mex_data2d_c.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/matlab/mex/astra_mex_data2d_c.cpp b/matlab/mex/astra_mex_data2d_c.cpp
index 5f79e98..62c5d80 100644
--- a/matlab/mex/astra_mex_data2d_c.cpp
+++ b/matlab/mex/astra_mex_data2d_c.cpp
@@ -44,6 +44,7 @@ $Id$
#include "astra/SparseMatrixProjectionGeometry2D.h"
#include "astra/FanFlatProjectionGeometry2D.h"
#include "astra/FanFlatVecProjectionGeometry2D.h"
+#include "astra/ParallelVecProjectionGeometry2D.h"
using namespace std;
using namespace astra;
@@ -159,6 +160,8 @@ void astra_mex_data2d_create(int& nlhs, mxArray* plhs[], int& nrhs, const mxArra
pGeometry = new CFanFlatProjectionGeometry2D();
} else if (type == "fanflat_vec") {
pGeometry = new CFanFlatVecProjectionGeometry2D();
+ } else if (type == "parallel_vec") {
+ pGeometry = new CParallelVecProjectionGeometry2D();
} else {
pGeometry = new CParallelProjectionGeometry2D();
}
@@ -448,6 +451,8 @@ void astra_mex_data2d_change_geometry(int nlhs, mxArray* plhs[], int nrhs, const
pGeometry = new CFanFlatProjectionGeometry2D();
} else if (type == "fanflat_vec") {
pGeometry = new CFanFlatVecProjectionGeometry2D();
+ } else if (type == "parallel_vec") {
+ pGeometry = new CParallelVecProjectionGeometry2D();
} else {
pGeometry = new CParallelProjectionGeometry2D();
}