Skip to content

Commit

Permalink
Fixed PBAS in relation to #218
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewssobral committed Feb 25, 2023
1 parent 67c0815 commit 0b2462b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/algorithms/PBAS/PBAS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,7 @@ bool PBAS::process(cv::Mat* input, cv::Mat* output)
norm = abs((((double)B_Mag_Pts.at(0).at(index)[i] -
((double)*currentFeaturesM_Pt.at(0)))*((double)B_Mag_Pts.at(0).at(index)[i] - ((double)*currentFeaturesM_Pt.at(0)))));

dist = abs((((double)B_Col_Pts.at(0).at(index)[i] -
((double)*currentFeaturesC_Pt.at(0)))*((double)B_Col_Pts.at(0).at(index)[i] - ((double)*currentFeaturesC_Pt.at(0))))
);
dist = abs(((double)B_Col_Pts.at(0).at(index)[i] - ((double)*currentFeaturesC_Pt.at(0))));
}
dist = ((double)alpha*(norm / formerMeanMag) + beta*dist);

Expand Down

0 comments on commit 0b2462b

Please sign in to comment.