-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoding_3D_Multi.m
More file actions
33 lines (26 loc) · 1.04 KB
/
coding_3D_Multi.m
File metadata and controls
33 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%% SETUP
% DEBUG ( 0 -> off, 1 -> on)
DEBUG = 0;
addpath('./debug/');
add_directory_path;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
hologram_path = './dataset/Interfere1/3D_Multi/';
hologram_name = 'Hol_3D_multi';
addpath(hologram_path);
load(strcat(hologram_name,'.mat')); % Hol_3D_multi.mat
% splitting complex matrix in real part and imaginary part
[real_matrix, imag_matrix] = split_complex(Hol); % Hol is the complex matrix name in the .mat file
% Range mapping & quantization
range_mapping_and_quant;
% Hologram info
wlen = 6.328e-07; % wavelength
zrec = 0.492015551750677; % reconstruction distance
height = 1080; % hologram height (px)
width = 1920; % hologram width (px)
area = (height*width*pitch); % area (?)
% Clear directories
del_coding_files;
%% SNR calc + Complex regeneration and rendering + PSNR calc
% Since it takes a lot of time it is advisable to open the script
% and execute one piece at a time as set in the script
SNR_PSNR_calc_CRR;