/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk
1 by Suren A. Chilingaryan
Initial import
1
jobs=1;
2
jobnumber=0;
3
4
jobs = menu(sprintf('Do you want to add a job?'),...
5
    'Yes','No','Load','Cancel');
6
7
if jobs==3
8
    cd(matlabroot)
9
    load('job.mat');
10
    jobnumber=job{2,1};
11
    jobs = menu(sprintf('Do you want to add another job?'),...
12
        'Yes','No','Cancel');
13
14
    if jobs==3
15
        jobs==4;
16
    end
17
end
18
19
20
21
if jobs==1
22
    while jobs==1
23
        jobnumber=jobnumber+1;
24
        [FileNameBase,PathNameBase,filenamelist]=filelist_generator;
25
        job(1,jobnumber)={PathNameBase};
26
        job(2,1)={jobnumber};
27
        cd(PathNameBase);
28
        [grid_x,grid_y]=grid_generator(filenamelist(1,:),PathNameBase);
29
        jobs = menu(sprintf('Do you want to add another job?'),...
30
            'Yes','No','Save','Cancel');
31
        if jobs==3
32
            cd(matlabroot)
33
            save('job')
34
            jobs = menu(sprintf('Do you want to add another job?'),...
35
            'Yes','No','Cancel');
36
            if jobs==3
37
                jobs==4;
38
            end
39
        end
40
41
    end
42
end
43
44
if jobs==4
45
    return
46
end
47
48
if jobs==2;
49
    if jobnumber==0
50
        return
51
    end
52
    for i=1:jobnumber
53
        i
54
        job{1,i}
55
        cd(job{1,i})
56
        [validx,validy]=automate_image;
57
    end
58
end