Skip to content
Snippets Groups Projects
Commit d58b3b43 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

fix corner 2D

parent d1a28acf
No related branches found
No related tags found
1 merge request!115fix corner 2D
This commit is part of merge request !115. Comments created here will be created in the context of that merge request.
...@@ -64,7 +64,7 @@ unsigned int ProcessorTrackerLandmarkCorner::findLandmarks(const LandmarkBaseLis ...@@ -64,7 +64,7 @@ unsigned int ProcessorTrackerLandmarkCorner::findLandmarks(const LandmarkBaseLis
Scalar closest_dm2 = 1e3; Scalar closest_dm2 = 1e3;
for (auto landmark_it = not_matched_landmarks.begin(); landmark_it != not_matched_landmarks.end(); landmark_it++) for (auto landmark_it = not_matched_landmarks.begin(); landmark_it != not_matched_landmarks.end(); landmark_it++)
{ {
if ((*landmark_it)->getType() == "CORNER" && if ((*landmark_it)->getType() == "CORNER 2D" &&
fabs(pi2pi((std::static_pointer_cast<FeatureCorner2D>(*feature_it))->getAperture() - (*landmark_it)->getDescriptor(0))) < aperture_error_th_) fabs(pi2pi((std::static_pointer_cast<FeatureCorner2D>(*feature_it))->getAperture() - (*landmark_it)->getDescriptor(0))) < aperture_error_th_)
{ {
dm2 = computeSquaredMahalanobisDistances((*feature_it), expected_features[*landmark_it], dm2 = computeSquaredMahalanobisDistances((*feature_it), expected_features[*landmark_it],
......
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