-
Notifications
You must be signed in to change notification settings - Fork 1
/
master_reg_bead_20180328_corbans_phantom.m
163 lines (134 loc) · 4.29 KB
/
master_reg_bead_20180328_corbans_phantom.m
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
clear all;
close all;
%% load parameters
param = init_param();
%%
[~,hostname] = system('hostname')
param.hostname = strtrim(hostname);
%setup_par
if ~isempty(strfind(param.hostname, 'Justins-Mac')) || ~isempty(strfind(param.hostname, 'dhcp-18-189-20-128.dyn.mit.edu'))
param.ppath = '/Users/justin/Desktop/DDLFM';
addpath([param.ppath '/lotus-registration']);
param.ipath = param.ppath;
param.opath = param.ipath;
param.parallel = false;
elseif ~isempty(strfind(param.hostname, 'willis'))
param.ppath = '/home/jkinney/Desktop/DDLFM';
addpath([param.ppath '/lotus-registration']);
param.ipath = param.ppath;
param.opath = param.ipath;
param.parallel = false;
else
param.ppath = '/home/jkinney';
addpath([param.ppath '/lotus-registration']);
param.ipath = '/om/user/jkinney/DLFM';
param.opath = param.ipath;
param.parallel = false;
end
%param.inputFilePath1 = [param.ipath '/horizontal/Reconstructed/'];
param.inputFilePath1 = [param.ipath '/Transformation-Phantoms-master/analysis/'];
%param.inputFilePath2 = [param.ipath '/vertical/Reconstructed/'];
param.inputFilePath2 = [param.ipath ...
'/Transformation-Phantoms-master/analysis/copies_of_rot_0_0_0_trans_0_0_0/'];
%%
param.savePath = [param.inputFilePath1 '/registration/'];
param.voxel_x = 1; % um
param.voxel_y = 1; % um
param.voxel_z = 1; % um
param.angle = [0 0 0]; % radians
param.interp = 1;
param.clip = [0 0 0 0 0 0];
param.confocal = true; % to rotate in all 3 dims.
param.Pmelt = 0.005;
param.trans_amp = 1;
param.rot_amp = [1 1 1];
% %% new set
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_90_0_0_trans_0_0_0.mat'};
% param.angle = [0*pi/180 0 0]; % radians
% register(param)
% close all;
%
% param.angle = [15*pi/180 0 0]; % radians
% register(param)
% close all;
%
% param.angle = [30*pi/180 0 0]; % radians
% register(param)
% close all;
%
% param.angle = [45*pi/180 0 0]; % radians
% register(param)
% close all;
%
% param.angle = [60*pi/180 0 0]; % radians
% register(param)
% close all;
%
% param.angle = [75*pi/180 0 0]; % radians
% register(param)
% close all;
% param.angle = [90*pi/180 0 0]; % radians
% register(param)
% close all;
%
% param.angle = [105*pi/180 0 0]; % radians
% register(param)
% close all;
% param.angle = [120*pi/180 0 0]; % radians
% register(param)
% close all;
% param.angle = [135*pi/180 0 0]; % radians
% register(param)
% close all;
%% original set
angle_0 = 85; % degrees
param.frozen2 = 1000;
% param.angle = [angle_0/180*pi angle_0/180*pi 0]; % radians
% param.inputFileName = {'axis_phantom_100_20180612_201406_rot_90_90_0_trans_0_0_0.mat'};
% register(param)
% close all;
%
% param.angle = [0 angle_0/180*pi 0]; % radians
% param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_90_0_trans_0_0_0.mat'};
% register(param)
% close all;
%
% param.angle = [0 0 angle_0/180*pi]; % radians
% param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_0_90_trans_0_0_0.mat'};
% register(param)
% close all;
%
% param.angle = [angle_0/180*pi 0 0]; % radians
% param.inputFileName = {'axis_phantom_100_20180612_201406_rot_90_0_0_trans_0_0_0.mat'};
% register(param)
% close all;
%
% param.angle = [angle_0/180*pi 0 angle_0/180*pi]; % radians
% param.inputFileName = {'axis_phantom_100_20180612_201406_rot_90_0_90_trans_0_0_0.mat'};
% register(param)
% close all;
param.angle = [-angle_0/180*pi -angle_0/180*pi -angle_0/180*pi]; % radians
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_-90_-90_-90_trans_0_0_0.mat'};
register(param)
close all;
param.angle = [angle_0/180*pi angle_0/180*pi angle_0/180*pi]; % radians
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_90_90_90_trans_0_0_0.mat'};
register(param)
close all;
keyboard
param.angle = [0 0 0]; % radians
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_0_0_trans_0_0_50.mat'};
register(param)
close all;
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_0_0_trans_0_50_0.mat'};
register(param)
close all;
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_0_0_trans_50_0_0.mat'};
register(param)
close all;
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_0_0_trans_50_50_0.mat'};
register(param)
close all;
param.inputFileName = {'axis_phantom_100_20180612_201406_rot_0_0_0_trans_50_50_50.mat'};
register(param)
close all;