-
Notifications
You must be signed in to change notification settings - Fork 3
/
traceScript_BranchinfoDemo.m
84 lines (72 loc) · 2.71 KB
/
traceScript_BranchinfoDemo.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
function traceScript_BranchinfoDemo(filepath,editedSeg)
% Copyright © 2012 Computational Biomedicine Lab (CBL),
% University of Houston. All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, is prohibited without the prior written consent of CBL.
%
%%%%%%%%%%%%%%%%%%%%
% CHANGING OPTIONS %
%%%%%%%%%%%%%%%%%%%%
% pathList = {'C:\Users\david\Desktop\for David\Raw\OP\Olfactory_Fibers_OP_1'};
% nameList = {'Olfactory_Fibers_OP_1'};
% mdSuffix = '_dOP';
% clSuffix = '_CL';
% zSmearFactor = 1;
pathList = {filepath};
%pathList={'Y:\Documents\DemoSFN'};
%'C:\Users\pankaj singh\Desktop\Read\MatlabExp\TaraKeck\Stack1\Common\Log_Common\SpineExtraction\Time_2\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'...
% 'C:\Users\pankaj singh\Desktop\Read\Laezza\'};
%};
nameList = {editedSeg};
% nameList={'RawAndMHD_k1016-1988-A4 0d_Edited_ROI'};
%'Log_Common_2_Edited'...
% 'Laezza_DIV14_GSK24h_combined_Denoised_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000',...
% 'Laezza_DIV14_GSK24h_combined_Segmentation_DENDRITES_s_2_t_0_75_b_1000' ...
% 'Laezza_first_blue_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'...
% 'Laezza_first_combined_Denoised_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'...
% 'Laezza_first_combined_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'...
% 'Laezza_second_blue_Denoised_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'...
% 'Laezza_second_blue_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'...
% 'Laezza_second_combined_Denoised_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'...
% 'Laezza_second_combined_Segmentation_DENDRITES_s_0_56_t_0_75_b_1000'};
%};
mdSuffix = '';
clSuffix = '_CL_Branch.swc';
zSmearFactor = 1;
%%%%%%%%%%%%%%%%%
% FIXED OPTIONS %
%%%%%%%%%%%%%%%%%
K = length(pathList);
L = zeros(K,4);
% parfor k = 1:K
for k = 1:K
path = pathList{k};
%name = strcat(nameList{k}, mdSuffix,'_BIN');
name = strcat(nameList{k}, mdSuffix);
savName = fullfile(path,strcat(name,clSuffix));
%LB = .5;
LB = .2;
B = RAWfromMHD(name,[],path);
[S D I] = genSeeds(B,LB,zSmearFactor);
T = joinSeeds(D,S,I);
T = genTraceTable_Branch(T);
dlmwrite(savName, T.amiraTable, 'delimiter', ' ');
% disp(k);
end
end
% CREATED:
% - Date: 09/06/2012
% - By: David Jimenez.
%EDITED:
%- Date: 03/02/2014
% - By: Pankaj Singh.
%