From 81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Fri, 15 May 2015 18:18:59 +0800 Subject: updated range --- getVecsM.m | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 getVecsM.m (limited to 'getVecsM.m') 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 -- cgit v1.2.3-70-g09d2