Skip to content
Snippets Groups Projects
Commit 9271fb73 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

removed wrong addConstrainedBy()

parent 8132d516
No related branches found
No related tags found
1 merge request!251Removed wrong addConstrainedBy()
Pipeline #2654 passed
......@@ -152,17 +152,6 @@ void ProcessorTrackerFeature::establishConstraints()
feature_in_last ->addConstraint(ctr_ptr);
feature_in_origin->addConstrainedBy(ctr_ptr);
if (ctr_ptr != nullptr) // constraint links
{
FrameBasePtr frm = ctr_ptr->getFrameOtherPtr();
if (frm)
frm->addConstrainedBy(ctr_ptr);
CaptureBasePtr cap = ctr_ptr->getCaptureOtherPtr();
if (cap)
cap->addConstrainedBy(ctr_ptr);
}
WOLF_DEBUG( "Constraint: track: " , feature_in_last->trackId(),
" origin: " , feature_in_origin->id() ,
" from last: " , feature_in_last->id() );
......
......@@ -137,12 +137,6 @@ void ProcessorTrackerLandmark::establishConstraints()
{
last_feature->addConstraint(ctr_ptr);
lmk->addConstrainedBy(ctr_ptr);
FrameBasePtr frm = ctr_ptr->getFrameOtherPtr();
if (frm)
frm->addConstrainedBy(ctr_ptr);
CaptureBasePtr cap = ctr_ptr->getCaptureOtherPtr();
if (cap)
cap->addConstrainedBy(ctr_ptr);
}
}
}
......
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