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

Function split_feat_desc

test/orb.cpp:79–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static void split_feat_desc(vector<feat_desc_t>& fd, vector<feat_t>& f,
80 vector<desc_t>& d) {
81 f.resize(fd.size());
82 d.resize(fd.size());
83 for (size_t i = 0; i < fd.size(); i++) {
84 f[i].f[0] = fd[i].f[0];
85 f[i].f[1] = fd[i].f[1];
86 f[i].f[2] = fd[i].f[2];
87 f[i].f[3] = fd[i].f[3];
88 f[i].f[4] = fd[i].f[4];
89 for (unsigned j = 0; j < 8; j++) d[i].d[j] = fd[i].d[j];
90 }
91}
92
93static unsigned popcount(unsigned x) {
94 x = x - ((x >> 1) & 0x55555555);

Callers 2

orbTestFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected