Mercurial > hg > aimc
comparison src/Scripts/plot_strobes.m @ 32:9122efd2b227
-New AIMCopy main for the SSI features (temporary hack till I get a working module load system)
-LocalMax strobe criterion. This is faster and better than the parabola version, which still seems buggy.
-Noise generator module. Adds noise to a signal. Uses boost for the random number generator.
-New options for the SSI
-Slice now respects all its flags (oops!).
-MATLAB functions for visualisation
-Scripts for generating data to view in MATLAB
-Script to download and build HTK - useful for running experiments
author | tomwalters |
---|---|
date | Thu, 25 Feb 2010 22:02:00 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
31:fa06bfacf004 | 32:9122efd2b227 |
---|---|
1 function plot_strobes(nap, strobes, frame_no) | |
2 n = squeeze(nap(frame_no,:,:)); | |
3 s = strobes(frame_no,:); | |
4 figure; | |
5 mesh(n, 'MeshStyle', 'row', 'EdgeColor','black'); | |
6 view([0.01 80]); | |
7 hold on; | |
8 for ch = 1:size(n, 1); | |
9 st = s{1,ch}; | |
10 for i=1:length(st) | |
11 if (st(i) > 0) | |
12 plot3(st(i),ch,n(ch, st(i)) ,'Marker','o','MarkerFaceColor',[1 0 0],'MarkerEdgeColor','w','MarkerSize',6); | |
13 end | |
14 end | |
15 end | |
16 |