summaryrefslogtreecommitdiffstats
path: root/demos/exportDemoRD2Data.m
diff options
context:
space:
mode:
authorDaniil Kazantsev <dkazanc@hotmail.com>2018-01-24 17:39:38 +0000
committerEdoardo Pasca <edo.paskino@gmail.com>2018-01-25 11:21:12 +0000
commit723a2d3fbe9a7a8c145b5f5ef481dcd4a3799383 (patch)
treeb4351067e39021973b7f155a04cd967289ac9ddc /demos/exportDemoRD2Data.m
parent9ff389298a1dc4d94222cfcc6e9c6c945401af03 (diff)
downloadregularization-723a2d3fbe9a7a8c145b5f5ef481dcd4a3799383.tar.gz
regularization-723a2d3fbe9a7a8c145b5f5ef481dcd4a3799383.tar.bz2
regularization-723a2d3fbe9a7a8c145b5f5ef481dcd4a3799383.tar.xz
regularization-723a2d3fbe9a7a8c145b5f5ef481dcd4a3799383.zip
all Matlab related stuff have been moved to wrappers
Diffstat (limited to 'demos/exportDemoRD2Data.m')
-rw-r--r--demos/exportDemoRD2Data.m35
1 files changed, 0 insertions, 35 deletions
diff --git a/demos/exportDemoRD2Data.m b/demos/exportDemoRD2Data.m
deleted file mode 100644
index 028353b..0000000
--- a/demos/exportDemoRD2Data.m
+++ /dev/null
@@ -1,35 +0,0 @@
-clear all
-close all
-%%
-% % adding paths
-addpath('../data/');
-addpath('../main_func/'); addpath('../main_func/regularizers_CPU/');
-addpath('../supp/');
-
-load('DendrRawData.mat') % load raw data of 3D dendritic set
-angles_rad = angles*(pi/180); % conversion to radians
-size_det = size(data_raw3D,1); % detectors dim
-angSize = size(data_raw3D, 2); % angles dim
-slices_tot = size(data_raw3D, 3); % no of slices
-recon_size = 950; % reconstruction size
-
-Sino3D = zeros(size_det, angSize, slices_tot, 'single'); % log-corrected sino
-% normalizing the data
-for jj = 1:slices_tot
- sino = data_raw3D(:,:,jj);
- for ii = 1:angSize
- Sino3D(:,ii,jj) = log((flats_ar(:,jj)-darks_ar(:,jj))./(single(sino(:,ii)) - darks_ar(:,jj)));
- end
-end
-
-Sino3D = Sino3D.*1000;
-Weights3D = single(data_raw3D); % weights for PW model
-clear data_raw3D
-
-hdf5write('DendrData.h5', '/Weights3D', Weights3D)
-hdf5write('DendrData.h5', '/Sino3D', Sino3D, 'WriteMode', 'append')
-hdf5write('DendrData.h5', '/angles_rad', angles_rad, 'WriteMode', 'append')
-hdf5write('DendrData.h5', '/size_det', size_det, 'WriteMode', 'append')
-hdf5write('DendrData.h5', '/angSize', angSize, 'WriteMode', 'append')
-hdf5write('DendrData.h5', '/slices_tot', slices_tot, 'WriteMode', 'append')
-hdf5write('DendrData.h5', '/recon_size', recon_size, 'WriteMode', 'append') \ No newline at end of file