annotate util/SMALL_AMT_plot.m @ 8:33850553b702

(none)
author idamnjanovic
date Mon, 22 Mar 2010 10:56:54 +0000
parents
children fc395272d53e
rev   line source
idamnjanovic@8 1 function figAMT=SMALL_AMT_plot(SMALL, AMT_res)
idamnjanovic@8 2 % Ivan Damnjanovic 2010
idamnjanovic@8 3 % Function gets as input SMALL structure and plots AMT
idamnjanovic@8 4
idamnjanovic@8 5
idamnjanovic@8 6 figAMT=figure('Name','Automatic Music Transcription');
idamnjanovic@8 7
idamnjanovic@8 8 m=size(AMT_res,2);
idamnjanovic@8 9
idamnjanovic@8 10 for i =1:m
idamnjanovic@8 11 subplot(m,1, i);plot(AMT_res(i).tp_notes(:,2), AMT_res(i).tp_notes(:,1),'ko', ...
idamnjanovic@8 12 AMT_res(i).tp_notes(:,4), AMT_res(i).tp_notes(:,3),'gx', ...
idamnjanovic@8 13 AMT_res(i).oe_notes(:,2), AMT_res(i).oe_notes(:,1),'bo', ...
idamnjanovic@8 14 AMT_res(i).oe_notes(:,4), AMT_res(i).oe_notes(:,3),'bx', ...
idamnjanovic@8 15 AMT_res(i).fn_notes_wo_oe(:,2), AMT_res(i).fn_notes_wo_oe(:,1),'ro', ...
idamnjanovic@8 16 AMT_res(i).fp_notes_wo_oe(:,2), AMT_res(i).fp_notes_wo_oe(:,1),'rx')
idamnjanovic@8 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));
idamnjanovic@8 18 xlabel('Time')
idamnjanovic@8 19 ylabel('Note Number')
idamnjanovic@8 20
idamnjanovic@8 21 end