forked from uw-loci/curvelets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
param_reg1_0530.m
53 lines (41 loc) · 2.41 KB
/
param_reg1_0530.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
function[p] = param_reg1_0530(p)
% Paras for processing Karissa FTP 0426 uploaded data
%preprocessing parameters
p.sigma_im = 0;%sqrt(2); %radius of box for smoothing original image
p.sigma_d = .3; %radius of box for smoothing of distance function
p.dtype = 'cityblock'; %type of distance transform for bwdist
%(cityblock is significantly faster than
%Euclidean distance)
%set threshold. p.thresh_im is for a percentage of maximum,
% p.thresh_im2 is for a hard value
p.thresh_im = [];
p.thresh_im2= 5; %34000; YM: to be replaced by the main program
%parameters for finding xlinks
p.thresh_Dxlink = 1.5; %dist fun. threshold for a point to be considered an x-link
p.s_xlinkbox = 8; %5; %radius of box in which to check to make sure xlink is a local max of the distance function
%parameters for extending xlinks
p.thresh_LMP = .2; %threshold for a point to be considered an LMP
p.thresh_LMPdist= 2; %minimum distance apart for two LMPs
p.thresh_ext = cos(70*pi/180); %cos(70*pi/180); %angle similarity required for a fiber to extend to the next point
p.lam_dirdecay = .5; %decay rate of fiber direction (to make it more difficult for a fiber to turn around)
p.s_minstep = 2; %minimum step size
p.s_maxstep = 6; %max step size
%parameters for removing danglers
p.thresh_dang_aextend = cos(10*pi/180);
p.thresh_dang_L = 15; %15;
p.thresh_short_L = 15; %15;
%parameters for fiber processing
p.s_fiberdir = 4; %number of nodes used for claculating direction of fiber end
p.thresh_linkd = 15; %20; %distance for linknig same-oriented fibers
p.thresh_linka = cos(-150 *pi/180); %ym,a 130 degree angle is enough to link 2 fibers together
p.thresh_flen = 15;%15;%minimum length of a free fiber
p.thresh_numv = 3; %minimum number of verties a free fiber can have
%parameters for beam processing
p.scale = [.05 .05 .1];
% p.scale = [1 1 1]; % ym
p.s_boundthick = 10; %pixels of thickness for image boundary
p.blist = 1; %indicates which boundaries are controlled (1=x,2=y,3=z)
p.s_maxspace = 5;
p.lambda = .01;
%ym: parameters for calculating angle at each sampling point
p.ang_interval = 3;