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

Function array_to_feat

test/susan.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

susanTestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected