Skip to content
Snippets Groups Projects
Commit 2627bd5c authored by ydepledt's avatar ydepledt
Browse files

Comment and add new function allMatchesSameType

parent eb4e795d
No related branches found
No related tags found
No related merge requests found
...@@ -538,6 +538,20 @@ void ProcessorTrackerLandmarkObject::allMatchesSameType(const FeatureBasePtrList ...@@ -538,6 +538,20 @@ void ProcessorTrackerLandmarkObject::allMatchesSameType(const FeatureBasePtrList
index_incoming++; index_incoming++;
} }
} }
std::vector<int> inliers_idx;
std::vector<int> outliers_idx;
Eigen::Isometry3d best_model = Eigen::Isometry3d::Identity();
bool RANSACWorks = ProcessorTrackerLandmarkObject::matchingRANSAC(cl_M_o_vec, ci_M_o_vec, matches, ratio_inliers_outliers_, inliers_idx, outliers_idx, best_model);
if (RANSACWorks)
{
std::cout << "RANSAC has worked" << std::endl;
//Keep only inliers
ProcessorTrackerLandmarkObject::filterMatchesInliers(inliers_idx, matches);
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment