| 42 | } desc_t; |
| 43 | |
| 44 | static bool feat_cmp(feat_desc_t i, feat_desc_t j) { |
| 45 | for (int k = 0; k < 5; k++) |
| 46 | if (round(i.f[k] * 1e1f) != round(j.f[k] * 1e1f)) |
| 47 | return (round(i.f[k] * 1e1f) < round(j.f[k] * 1e1f)); |
| 48 | |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | static void array_to_feat_desc(vector<feat_desc_t>& feat, float* x, float* y, |
| 53 | float* score, float* ori, float* size, |