Mercurial > hg > c4dm-chord-transcriptions
diff evaluationtools/get_all_seg_results.m @ 1:8973548174c1 tip
adding tools to repo
author | christopherh |
---|---|
date | Mon, 06 May 2013 14:43:47 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/evaluationtools/get_all_seg_results.m Mon May 06 14:43:47 2013 +0100 @@ -0,0 +1,69 @@ + + +E_directory = '/media/data/matlab-work/mirex_results/converted'; + +A_directory = '/media/data/beatles chord transcriptions 1.3/'; + +results_dir = '/media/data/matlab-work/mirex_results/seg' + + +folders = {'ch_aes','ch_hcdf','ch_hcdfa','de','ko1','ko2','md','ogf1','ogf2','pp','pvm1','pvm2','rrhs1','rrhs2','rrhs3'}; + +beatles_A_names = readlist('beatles_A_paths.txt'); + +beatles_E_names = readlist('beatles_names.txt'); + +outtext = ''; + +folder_number = length(folders); +song_number = length(beatles_A_names); + +paramasarray = []; + +%tests to run: + + +% TEST1 + +% set the recall parameters +params.framerate = 100; %fps 10ms frames + + + + results = zeros(folder_number,song_number,6); + + time_resolution = 1/params.framerate; % recall time resolution = 1/fps + + for i = 1:folder_number + + % for each folder + + + for j = 1:song_number + + % get current annotation file + annotations_labfile = [A_directory '/' beatles_A_names{j}] + + % get current labfile + estimates_labfile = [E_directory '/' folders{i} '/' beatles_E_names{j}]; + + [segmeasure, m, f,total_time, dAE, dEA] = getsegmeasure(annotation_labfile, estimates_labfile) + + results(i,j,1) = segmeasure; + results(i,j,2) = m; + results(i,j,3) = f; + results(i,j,4) = total_time; + results(i,j,5) = dAE; + results(i,j,6) = dEA; + + end + + + end + + outtext = format_seg_results(results, folders, beatles_A_names); + + printfile(outtext, [results_dir '/seg-' datestr(now,'yyyy-mm-dd') '.txt']); + + +