mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
Fix wrong mat access.
This commit is contained in:
parent
108188e42f
commit
8b7cb8a3f1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user