Replies: 1 comment
-
result: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
//Here is share examples how to do it~~~
#include "iostream"
#include "unordered_map"
#include "vector"
#include "cmath"
//128-D can use dlib::length(descriptors128D0 - descriptors128D1); substitute this
double calculateDistance(const double& x1, const double& y1, const double& x2, const double& y2) {
double dx = x1 - x2;
double dy = y1 - y2;
return std::sqrt(dx * dx + dy * dy);
}
int main() {
int count = 0;
double vector[][2] = {{1, 1}, {2, 2}, {7, 7}, {8.2, 8.2}, {12, 12}, {13, 13}, {8.5, 8.5}};
std::unordered_map<int, std::vector> categoryMap;
}
Beta Was this translation helpful? Give feedback.
All reactions