Fix wrong mat access.

This commit is contained in:
catree 2017-07-03 16:56:53 +02:00
parent 108188e42f
commit 8b7cb8a3f1

View File

@ -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;
}
}