Mercurial > hg > smallbox
comparison util/SMALL_AMT_plot.m @ 8:33850553b702
(none)
author | idamnjanovic |
---|---|
date | Mon, 22 Mar 2010 10:56:54 +0000 |
parents | |
children | fc395272d53e |
comparison
equal
deleted
inserted
replaced
7:0151f1ea080d | 8:33850553b702 |
---|---|
1 function figAMT=SMALL_AMT_plot(SMALL, AMT_res) | |
2 % Ivan Damnjanovic 2010 | |
3 % Function gets as input SMALL structure and plots AMT | |
4 | |
5 | |
6 figAMT=figure('Name','Automatic Music Transcription'); | |
7 | |
8 m=size(AMT_res,2); | |
9 | |
10 for i =1:m | |
11 subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ... | |
12 AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ... | |
13 AMT_res(i).oe_notes(:,2), AMT_res(i).oe_notes(:,1),'bo', ... | |
14 AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ... | |
15 AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ... | |
16 AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx') | |
17 title(sprintf('%s dictionary in %.2f s - TP=%d FN=%d (Octave Errors = %d) FP=%d', SMALL.DL(i).name, SMALL.DL(i).time, AMT_res(i).TP, AMT_res(i).FN, size(AMT_res(i).oe_notes,1), AMT_res(i).FP)); | |
18 xlabel('Time') | |
19 ylabel('Note Number') | |
20 | |
21 end |