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

Function array_to_feat_desc

test/sift.cpp:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

siftTestFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected