Skip to content

Commit 4db13b8

Browse files
authored
Update Tracker.cc
bgfx: normalize the points in MatchesForRansac to fix the bug of issue#8
1 parent 8b40221 commit 4db13b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rvio2/Tracker.cc

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ void Tracker::VisualTracking(const int nImageId,
262262
{
263263
cv::Point2f pt = vFeatPtsUN.at(i);
264264
MatchesForRansac.col(i) << pt.x, pt.y, 1;
265+
MatchesForRansac.col(i).normalize();
265266
}
266267

267268
mpRansac->FindInliers(PointsForRansac, MatchesForRansac, mRr, nInliers, vInlierFlags);

0 commit comments

Comments
 (0)