summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matlab/tools/astra_create_fbp_reconstruction.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/matlab/tools/astra_create_fbp_reconstruction.m b/matlab/tools/astra_create_fbp_reconstruction.m
index 4456f9c..5540f27 100644
--- a/matlab/tools/astra_create_fbp_reconstruction.m
+++ b/matlab/tools/astra_create_fbp_reconstruction.m
@@ -20,4 +20,8 @@ cfg.Options.GPUindex = 0;
alg_id = astra_mex_algorithm('create', cfg);
astra_mex_algorithm('run', alg_id);
+if numel(sinogram) ~= 1
+ astra_mex_data2d('delete', sinogram_id);
+end
+
FBP = astra_mex_data2d('get', FBP_id);