diff options
Diffstat (limited to 'getVecsM.m')
-rw-r--r-- | getVecsM.m | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/getVecsM.m b/getVecsM.m new file mode 100644 index 0000000..c3b17c4 --- /dev/null +++ b/getVecsM.m @@ -0,0 +1,24 @@ +function [minc,maxc] = getVecsM(dirname) + indir = strcat(strcat('~/VIPeR/',dirname),'/'); + idlist=dir(indir); + minc = []; + maxc = []; + + for i=1:length(idlist) + n = idlist(i).name; + switch n + case '.' + continue; + case '..' + continue; + otherwise + n=n(1:strfind(n,'_')-1) + end + img=im2double(imread(strcat(indir,idlist(i).name))); + [mic,mac]=getFeatureExt(img); + minc=cat(1,minc,mic); + maxc=cat(1,maxc,mac); + end + minc=min(minc); + maxc=max(maxc); +end
\ No newline at end of file |