Commit 8b7cb8a3 authored by catree's avatar catree

Fix wrong mat access.

parent 108188e4
......@@ -73,7 +73,7 @@ double getOrientation(const vector<Point> &pts, Mat &img)
eigen_vecs[i] = Point2d(pca_analysis.eigenvectors.at<double>(i, 0),
pca_analysis.eigenvectors.at<double>(i, 1));
eigen_val[i] = pca_analysis.eigenvalues.at<double>(0, i);
eigen_val[i] = pca_analysis.eigenvalues.at<double>(i);
}
//! [pca]
......@@ -143,4 +143,4 @@ int main(int, char** argv)
waitKey(0);
return 0;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment