/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to jobskript_mp.m

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-17 01:41:15 UTC
  • Revision ID: csa@dside.dyndns.org-20100817014115-xbh0h6086nz5sj2o
Synchronize with Chris version, set precision to 1, initial implementation of labview wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
        automate_image_mp_2009b;
 
57
    end
 
58
end
 
 
b'\\ No newline at end of file'