summaryrefslogtreecommitdiff
path: root/getVecsM.m
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-05-15 18:18:59 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-05-15 18:18:59 +0800
commit81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf (patch)
treebae7b6f5ded34e5d9e5244b3e51861620c9b64a4 /getVecsM.m
parentc02789c3194059233b275a2de76c33f5456f0a11 (diff)
downloadfeatext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.tar.gz
featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.tar.bz2
featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.zip
updated range
Diffstat (limited to 'getVecsM.m')
-rw-r--r--getVecsM.m24
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