Skip to content

Commit

Permalink
delete unused dist function
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Nikulin committed Nov 20, 2019
1 parent de644e0 commit 71cd70a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/feature/sift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,6 @@ Eigen::MatrixXi ComputeSiftDistanceMatrix(
}


struct ReverseDotDistance {
using ElementType = int;
using ResultType = int;

template <class Iterator1, class Iterator2>
ResultType operator()(Iterator1 a, Iterator2 b, size_t size, ResultType /*worst_dist*/ = -1) const {
ResultType result = ResultType();
for (size_t i = 0; i < size; ++i) {
result -= (*a++) * (*b++);
}
return result;
}
};
void FlannMatch(const FeatureDescriptors& query,
const FeatureDescriptors& dataset,
Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> * indices,
Expand Down

0 comments on commit 71cd70a

Please sign in to comment.