source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamSelfCal/FindingPoints/mycorr2.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 500 bytes
Line 
1% mycorr2 modified version of the 2D correlation
2%         for the use with im2col and col2im
3%         see GETPOINT
4%
5%
6% $Id: mycorr2.m,v 2.0 2003/06/19 12:06:52 svoboda Exp $
7
8% Note: It written in order to gain speed. The clarity of the code suffers accordingly
9
10function R = mycorr2(X,G,Gn,Gn2)
11
12% Gn  = G-mean(G);
13% Gn2 = sqrt(sum(Gn.^2));
14
15mX      = repmat(mean(X),size(X,1),1);
16mXn = X - mX;
17smX     = sum(mXn.^2);
18
19numerator = (mXn'*Gn)';
20denominator = smX*Gn2;
21
22R = numerator./denominator;
23
24return
Note: See TracBrowser for help on using the repository browser.