Skip to content

Commit

Permalink
fix covariance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 20, 2020
1 parent 3802208 commit bc9ca2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surface_normal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Plane fit_plane(const Mat &points) {
}
// Evaluate SVD of covariance matrix.
Mat A;
gemm(points2, points, 1, noArray(), 0, A, CV_GEMM_A_T);
gemm(points2, points2, 1, noArray(), 0, A, CV_GEMM_A_T);
SVD svd(A, SVD::MODIFY_A);
// Assign plane coefficients by singular std::vector corresponding to smallest
// singular value.
Expand Down

0 comments on commit bc9ca2f

Please sign in to comment.