annotate trunk/src/Scripts/plot_strobes.m @ 596:b58758854b88
- Allow the SAI to use double-buffering, as was originally intended.
| author |
tomwalters@google.com |
| date |
Wed, 06 Feb 2013 15:41:24 +0000 |
| parents |
ed91095d9240 |
| children |
|
| rev |
line source |
|
tomwalters@305
|
1 function plot_strobes(nap, strobes, frame_no)
|
|
tomwalters@305
|
2 n = squeeze(nap(frame_no,:,:));
|
|
tomwalters@305
|
3 s = strobes(frame_no,:);
|
|
tomwalters@305
|
4 figure;
|
|
tomwalters@305
|
5 mesh(n, 'MeshStyle', 'row', 'EdgeColor','black');
|
|
tomwalters@305
|
6 view([0.01 80]);
|
|
tomwalters@305
|
7 hold on;
|
|
tomwalters@305
|
8 for ch = 1:size(n, 1);
|
|
tomwalters@305
|
9 st = s{1,ch};
|
|
tomwalters@305
|
10 for i=1:length(st)
|
|
tomwalters@305
|
11 if (st(i) > 0)
|
|
tomwalters@305
|
12 plot3(st(i),ch,n(ch, st(i)) ,'Marker','o','MarkerFaceColor',[1 0 0],'MarkerEdgeColor','w','MarkerSize',6);
|
|
tomwalters@305
|
13 end
|
|
tomwalters@305
|
14 end
|
|
tomwalters@305
|
15 end
|
|
tomwalters@305
|
16 |