Skip to content

Commit

Permalink
start debugging semivariogram
Browse files Browse the repository at this point in the history
  • Loading branch information
abramhindle committed Nov 14, 2012
1 parent e26d364 commit 6800bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KinectCVShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ double semivariogram(Mat & m, int n) {
float dist[n][n];
for (int i = 0; i < n; i++) {
for (int j = i; j < n; j++) {
float v = m.at<float>(x[i],y[i]) - m.at<float>(x[j],y[j]);
float v = m.at<float>(y[i],x[i]) - m.at<float>(y[j],x[j]);
float v2 = v * v;
dist[i][j] = v2;
dist[j][i] = v2;
Expand Down

0 comments on commit 6800bea

Please sign in to comment.