/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: 2009-12-10 15:47:44 UTC
  • Revision ID: csa@dside.dyndns.org-20091210154744-min3x71y3tgrkvpu
Optimize FFT size

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
%  1 - The modified sources from images toolkit are used
44
44
%  2 - The CUDA matlab plugin is used to compute FFT's
45
45
%  3 - Most of computations are performed on NVidia card
 
46
%  4 - Optimize FFT sizes for better performance (affects precision)
46
47
% You can safely set an optimization level to 3. If NVidia card is not available
47
48
% the level will be automatically reduced to 1.
48
49
%
50
51
% 0 - in the end
51
52
% 1 - per iteration
52
53
 
53
 
OPTIMIZE = 3;
 
54
OPTIMIZE = 4;
54
55
CORRSIZE = 15;  
55
56
PRECISION = 1000;
56
57
SILENT = 1;
124
125
    hwid = normxcorr_hw();
125
126
 
126
127
    if hwid > 0
127
 
        err = normxcorr_hw(hwid, 1, ncp, CORRSIZE, PRECISION);
 
128
        err = normxcorr_hw(hwid, 1, ncp, CORRSIZE, PRECISION, OPTIMIZE);
128
129
        if (err ~= 0)
129
130
            normxcorr_hw(1);
130
131
            OPTIMIZE = 2;