/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: 2009-11-26 18:37:24 UTC
  • Revision ID: csa@dside.dyndns.org-20091126183724-dck2wcyt2ookjtab
Add error checking to initialization process

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    end
41
41
 
42
42
    sum_T = sum(sub_input(:));
43
 
    denom_T = std(sub_input(:));
 
43
    % DS: double is required by 2007+ versions of Matlab for not known reasons
 
44
    denom_T = std(double(sub_input(:)));
44
45
 
45
46
    % check that template rectangle sub_input has nonzero std
46
47
    if denom_T==0