Skip to content

Commit

Permalink
Fix for OpenCV 4.2
Browse files Browse the repository at this point in the history
The latest OpenCV on Anaconda is 4.2, and some flags like `cv::CV_COVAR_ROWS` flag have become `cv::COVAR_ROWS`
  • Loading branch information
ManifoldFR authored and valgur committed Apr 2, 2020
1 parent 4688a63 commit 0f98362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/surface_normal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Mat1f get_surrounding_points(const Mat1f &depth, int i, int j, CameraIntrinsics
Vec3f fit_plane(const Mat &points) {
constexpr int ncols = 3;
Mat cov, centroid;
calcCovarMatrix(points, cov, centroid, CV_COVAR_ROWS | CV_COVAR_NORMAL, CV_32F);
calcCovarMatrix(points, cov, centroid, COVAR_ROWS | COVAR_NORMAL, CV_32F);
SVD svd(cov, SVD::MODIFY_A);
// Assign plane coefficients by the singular vector corresponding to the smallest
// singular value.
Expand Down

0 comments on commit 0f98362

Please sign in to comment.