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

Function array_to_feat_desc

test/orb.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static void array_to_feat_desc(vector<feat_desc_t>& feat, float* x, float* y,
52 float* score, float* ori, float* size,
53 unsigned* desc, unsigned nfeat) {
54 feat.resize(nfeat);
55 for (size_t i = 0; i < feat.size(); i++) {
56 feat[i].f[0] = x[i];
57 feat[i].f[1] = y[i];
58 feat[i].f[2] = score[i];
59 feat[i].f[3] = ori[i];
60 feat[i].f[4] = size[i];
61 for (unsigned j = 0; j < 8; j++) feat[i].d[j] = desc[i * 8 + j];
62 }
63}
64
65static void array_to_feat_desc(vector<feat_desc_t>& feat, float* x, float* y,
66 float* score, float* ori, float* size,

Callers 2

orbTestFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected