MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / feat_cmp

Function feat_cmp

test/sift.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42} desc_t;
43
44static 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
52static void array_to_feat_desc(vector<feat_desc_t>& feat, float* x, float* y,
53 float* score, float* ori, float* size,

Callers

nothing calls this directly

Calls 1

roundFunction · 0.85

Tested by

no test coverage detected