80 likes | 173 Vues
A MatLab code to extract album information from text files, creating separate info files for each image while excluding certain data. Also, renaming and displaying file names. Future goals include data analysis and visualization.
E N D
Week 4 Report Shelby Thompson
This week… • Focused more on coding • No research papers • Feel better in MatLab
Starting Code… fpath='F:\Datasets\albums\shelby\info'; files = dir(fullfile(fpath,'*_tag.txt')); for f = 1 : length(files) [t1,t2,t3,t4] =textread(fullfile(fpath,files(f).name),'%d %f %f %d'); if t4(1) == -1 continue; end end
Starting Code… • Creates a file to store photo info • Makes a each image an info file • Ignores pictures if album number is -1
Ending Code… fpath='F:\Datasets\albums\shelby\info'; files = dir(fullfile(fpath,'*_tag.txt')); for f = 1 : length(files) [t1,t2,t3,t4] =textread(fullfile(fpath,files(f).name),'%d %f %f %d'); files(f).name =strrep(files(f).name,'_tag.txt','') disp(files(f).name); if t4(1) == -1 continue; end end
Ending Code… • This code goes changes the names of the info files • No _tag.tex part of name • Displays new names
Goals for next week… • Analyze data • Use public datasets • Use pairwise distances and features • Plot data • Show results