-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathOCY_plot_fig4c.m
36 lines (30 loc) · 950 Bytes
/
OCY_plot_fig4c.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
function OCY_plot_fig4c(d,k)
skel = Graph2Skel3D(d(k).node,d(k).link,512,512,51);
figure();clf;col_c_proj(skel,flipud(bone),flipud(bone));
hold on;
w = 512;
l = 512;
h = 51;
x = round([d(k).node.comx]);
y = round([d(k).node.comy]);
z = round([d(k).node.comz]);
c=[0.8 0.8 0.8];
plot(y,x,'o','Color',c,'MarkerFaceColor',c,'MarkerSize',8);
drawnow;
hbw = find(d(k).bw>quantile(d(k).bw,0.85));
x = round([d(k).node(hbw).comx]);
y = round([d(k).node(hbw).comy]);
z = round([d(k).node(hbw).comz]);
c = [0.4 0.8 0.4];
plot(y,x,'o','Color',c,'MarkerFaceColor',c,'MarkerSize',8);
drawnow;
hbw = find(d(k).bw>quantile(d(k).bw,0.95));
x = round([d(k).node(hbw).comx]);
y = round([d(k).node(hbw).comy]);
z = round([d(k).node(hbw).comz]);
c = [0.1 0.4 0.1];
plot(y,x,'o','Color',c,'MarkerFaceColor',c,'MarkerSize',8);
drawnow;
set(gcf,'PaperPositionMode','auto');
fname = sprintf('F_04_c%0.0d',k);
print('-dpng',fname);