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

Function split_feat_desc

test/gloh.cpp:80–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void split_feat_desc(vector<feat_desc_t>& fd, vector<feat_t>& f,
81 vector<desc_t>& d) {
82 f.resize(fd.size());
83 d.resize(fd.size());
84 for (size_t i = 0; i < fd.size(); i++) {
85 f[i].f[0] = fd[i].f[0];
86 f[i].f[1] = fd[i].f[1];
87 f[i].f[2] = fd[i].f[2];
88 f[i].f[3] = fd[i].f[3];
89 f[i].f[4] = fd[i].f[4];
90 for (unsigned j = 0; j < 272; j++) d[i].d[j] = fd[i].d[j];
91 }
92}
93
94static bool compareEuclidean(dim_t desc_len, dim_t ndesc, float* cpu,
95 float* gpu, float unit_thr = 1.f,

Callers 2

glohTestFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected