/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 automate_image.m

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-23 00:02:19 UTC
  • Revision ID: csa@dside.dyndns.org-20100423000219-xagi3lp4su6g1y8e
Tags: single_gpu
CUDAfication of real-time module

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
SILENT = 1;
59
59
SAVEDATA = 0;
60
60
 
 
61
warning off Images:initSize:adjustingMag
 
62
 
61
63
% exist('grid_x')
62
64
% exist('grid_y')
63
65
% exist('filenamelist')
64
66
% exist('validx')
65
67
% exist('validy')
66
68
 
67
 
if exist('data', 'dir')
68
 
    datadir = 'data/';
69
 
else
70
 
    datadir = '';
71
 
end
72
 
 
73
69
if exist('images', 'dir')
74
70
    imagedir = 'images/';
75
71
else
76
72
    imagedir = '';
77
73
end
78
74
 
 
75
if exist('data', 'dir')
 
76
    datadir = 'data/';
 
77
else
 
78
    if exist([imagedir, 'grid_x.dat'], 'file')
 
79
        datadir = imagedir;
 
80
    else
 
81
        datadir = '';
 
82
    end
 
83
end
 
84
 
 
85
 
79
86
% Load necessary files
80
87
if exist('grid_x')==0
81
88
    load([datadir, 'grid_x.dat'])              % file with x position, created by grid_generator.m