diff core/magnatagatune/makro_export_db_mtttags.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/core/magnatagatune/makro_export_db_mtttags.m	Tue Feb 10 15:05:51 2015 +0000
@@ -0,0 +1,17 @@
+
+
+tag_names = [db_magnaclips.tagdb.lexicon];
+for i = 1:numel(tag_names)
+    tag_names2(i,[2 1]) = {tag_names{i}, i};
+end
+CELL2CSV('tag_names.csv',tag_names2, ',') ;
+
+for i = 1:numel(u)
+    file_names(i,1:2) = {u(i), db_magnaclips.annots_filenames{i,2}};
+end
+CELL2CSV('file_names.csv',file_names, ',') ;
+
+for i = 1:numel(clips)
+    clip_tags(i,1:2) = {u(i), implode(', ', clips(i).tag_ids)};
+end
+CELL2CSV('clip_tags.csv',clip_tags, ';') ;
\ No newline at end of file