-
Notifications
You must be signed in to change notification settings - Fork 1
/
init_param.m
82 lines (69 loc) · 2.05 KB
/
init_param.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
function param = init_param ()
param = struct;
param.voxel_x = 0.323; % um
param.voxel_y = 0.323; % um
param.voxel_z = 4.0; % um
param.interp = 8;
param.myfunc_combine = 'multiply_sqrt';
param.myfunc_MI = 'multiply';
param.prate = -1;
param.Trate = 1e-3;
param.final_p = 1e-3;
param.init_p = 0.3;
%param.trans_amp = 1; % um
param.trans_amp = 3.5;
%param.rot_amp = param.scale_rot * pi/800; % radians
param.rot_amp = [1 0.1 0.1];
%param.trans_amp = 1.0; % um
%param.rot_amp = pi/80; % radians
% amount to clip from periphery in pixels
% dim1 min, dim1 max, dim2 min, dim2 max, dim3 min, dim3 max,
param.clip = [100,100,100,100,0,0];
param.frozen1 = 100;
param.frozen2 = 100;
%param.anneal = 'linear';
param.anneal = 'exp';
param.Pmelt = 0.2; % fraction, max val = 1
param.Pepsilon = 0.05; % fraction, error allowed for finding T that matches Pmelt
param.T0 = 1e10;
param.Tmin = 1e6;
param.TC0 = 10000;
param.Nnull = 2000;
param.confocal = false;
param.psf = [-1.0 -1.0 -1.0]; %um
%param.offset = [-8 -30 0];
%param.offset = [0 0 0];
param.offset = {[], [], []};
param.trans = [0 0 0]; % um
%param.angle = [-1.2*pi/2 0 0]; % radians
param.angle = [-1.0*pi/2 0 0]; % radians
param.rot = [0 0 0]; % radians
param.lfdisplay = false;
param.saveTIF = false;
%param.centroid = [169.8834 184.3252 129.1565];
param.centroid = [-1 -1 -1];
% indices of side2 that are being tracked
%param.threshold = 20;
param.threshold1 = 40;
param.threshold2 = 40;
param.index2 = [];
param.N = 10000;
param.xlim_thresh = 0.9999; %HARDCODED
%param.contour_thresh = 0.99;
param.pop_thresh = 0.999; %HARDCODED
param.dynamic_range_thresh = 10;
param.rapid = false;
param.justCalcMI = false;
param.savevol = true;
param.plot = true;
%param.savePath = '/Users/justin/Desktop/LFM volume registration/';
param.savePath = '/home/jkinney/Desktop/LFM volume registration/registration/param_sweep/';
%param.savePath = '/tmp/';
param.inputFilePath1 = '';
param.inputFilePath2 = '';
param.inputFileName = {
'raw_side1.mat',
'raw_side2.mat'};
param.xlim_1d = [0 0 0];
param.parallel = false;
end