summaryrefslogtreecommitdiff
path: root/getVecsM.m
blob: c3b17c41a61c525122e038f27983b392fdd953c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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