Skip to content

Commit

Permalink
Fixed a bug in Ransac proposer (#13)
Browse files Browse the repository at this point in the history
* Fixed a bug in Ransac proposer

* explicit initialization to zeros

Co-authored-by: Anna Szal <anna.szal@tcl.com>
  • Loading branch information
Anna-Szal and Anna Szal committed Oct 29, 2021
1 parent c13f912 commit db6e2ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LocalExpansionStereo/Proposer.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ class RansacProposer : public IProposer
cv::Mat div = cv::Mat_<float>::zeros(3, 1);
cv::Mat inls = cv::Mat_<uchar>(len, 1, (uchar)0);
int no_i_c = 0;
cv::Mat N = cv::Mat_<float>(3, 1);
cv::Mat result;
cv::Mat N = cv::Mat_<float>::zeros(3, 1);
cv::Mat result = cv::Mat_<float>::zeros(3, 1);

cv::Mat ranpts = cv::Mat_<float>::zeros(3, 3);
cv::Mat ranpts_ = cv::Mat_<cv::Vec3f>(ranpts);
Expand Down

0 comments on commit db6e2ad

Please sign in to comment.