/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 dic_cpcorr.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:
72
72
        % peak of norxcorr2 not well constrained, unable to adjust
73
73
        continue
74
74
    end
75
 
 
 
75
    
 
76
    PRECISION=1;
76
77
    input_fractional_offset = xyinput(icp,:) - round(xyinput(icp,:)*PRECISION)/PRECISION;
77
78
    
78
79
    % adjust control point
79
80
    xyinput(icp,:) = xyinput(icp,:) - input_fractional_offset - corr_offset + base(icp).base_fractional_offset;
 
81
    %xyinput(icp,:) = round(xyinput(icp,:)) - corr_offset + base(icp).base_fractional_offset;
80
82
 
81
83
end
82
84