/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
jobs=1;
jobnumber=0;

jobs = menu(sprintf('Do you want to add a job?'),...
    'Yes','No','Load','Cancel');

if jobs==3
    cd(matlabroot)
    load('job.mat');
    jobnumber=job{2,1};
    jobs = menu(sprintf('Do you want to add another job?'),...
        'Yes','No','Cancel');

    if jobs==3
        jobs==4;
    end
end



if jobs==1
    while jobs==1
        jobnumber=jobnumber+1;
        [FileNameBase,PathNameBase,filenamelist]=filelist_generator;
        job(1,jobnumber)={PathNameBase};
        job(2,1)={jobnumber};
        cd(PathNameBase);
        [grid_x,grid_y]=grid_generator(filenamelist(1,:),PathNameBase);
        jobs = menu(sprintf('Do you want to add another job?'),...
            'Yes','No','Save','Cancel');
        if jobs==3
            cd(matlabroot)
            save('job')
            jobs = menu(sprintf('Do you want to add another job?'),...
            'Yes','No','Cancel');
            if jobs==3
                jobs==4;
            end
        end

    end
end

if jobs==4
    return
end

if jobs==2;
    if jobnumber==0
        return
    end
    for i=1:jobnumber
        i
        job{1,i}
        cd(job{1,i})
        [validx,validy]=automate_image;
    end
end