christopherh@1: christopherh@1: christopherh@1: E_directory = '/media/data/matlab-work/mirex_results/converted'; christopherh@1: christopherh@1: A_directory = '/media/data/beatles chord transcriptions 1.3/'; christopherh@1: christopherh@1: results_dir = '/media/data/matlab-work/mirex_results/seg' christopherh@1: christopherh@1: christopherh@1: folders = {'ch_aes','ch_hcdf','ch_hcdfa','de','ko1','ko2','md','ogf1','ogf2','pp','pvm1','pvm2','rrhs1','rrhs2','rrhs3'}; christopherh@1: christopherh@1: beatles_A_names = readlist('beatles_A_paths.txt'); christopherh@1: christopherh@1: beatles_E_names = readlist('beatles_names.txt'); christopherh@1: christopherh@1: outtext = ''; christopherh@1: christopherh@1: folder_number = length(folders); christopherh@1: song_number = length(beatles_A_names); christopherh@1: christopherh@1: paramasarray = []; christopherh@1: christopherh@1: %tests to run: christopherh@1: christopherh@1: christopherh@1: % TEST1 christopherh@1: christopherh@1: % set the recall parameters christopherh@1: params.framerate = 100; %fps 10ms frames christopherh@1: christopherh@1: christopherh@1: christopherh@1: results = zeros(folder_number,song_number,6); christopherh@1: christopherh@1: time_resolution = 1/params.framerate; % recall time resolution = 1/fps christopherh@1: christopherh@1: for i = 1:folder_number christopherh@1: christopherh@1: % for each folder christopherh@1: christopherh@1: christopherh@1: for j = 1:song_number christopherh@1: christopherh@1: % get current annotation file christopherh@1: annotations_labfile = [A_directory '/' beatles_A_names{j}] christopherh@1: christopherh@1: % get current labfile christopherh@1: estimates_labfile = [E_directory '/' folders{i} '/' beatles_E_names{j}]; christopherh@1: christopherh@1: [segmeasure, m, f,total_time, dAE, dEA] = getsegmeasure(annotation_labfile, estimates_labfile) christopherh@1: christopherh@1: results(i,j,1) = segmeasure; christopherh@1: results(i,j,2) = m; christopherh@1: results(i,j,3) = f; christopherh@1: results(i,j,4) = total_time; christopherh@1: results(i,j,5) = dAE; christopherh@1: results(i,j,6) = dEA; christopherh@1: christopherh@1: end christopherh@1: christopherh@1: christopherh@1: end christopherh@1: christopherh@1: outtext = format_seg_results(results, folders, beatles_A_names); christopherh@1: christopherh@1: printfile(outtext, [results_dir '/seg-' datestr(now,'yyyy-mm-dd') '.txt']); christopherh@1: christopherh@1: christopherh@1: