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

Function array_to_feat

test/fast.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static void array_to_feat(vector<feat_t> &feat, float *x, float *y,
39 float *score, float *orientation, float *size,
40 unsigned nfeat) {
41 feat.resize(nfeat);
42 for (unsigned i = 0; i < feat.size(); i++) {
43 feat[i].f[0] = x[i];
44 feat[i].f[1] = y[i];
45 feat[i].f[2] = score[i];
46 feat[i].f[3] = orientation[i];
47 feat[i].f[4] = size[i];
48 }
49}
50
51template<typename T>
52class FloatFAST : public ::testing::Test {

Callers 2

fastTestFunction · 0.70
TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected