Commit 639e7367 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by GitHub

Merge pull request #9081 from catree:fix_tutorial_pca_intro

Fix wrong mat access in introduction_to_pca.cpp
parents 2863c9fe 8b7cb8a3
......@@ -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