80 likes | 170 Views
Week 4 Report. Shelby Thompson. This week…. Focused more on coding No research papers Feel better in MatLab. Starting Code…. fpath ='F:Datasetsalbums shelby info' ; files = dir(fullfile(fpath ,'*_ tag.txt ')) ; for f = 1 : length(files )
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