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

Function sift

src/api/cpp/sift.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace af {
15
16void sift(features& feat, array& desc, const array& in, const unsigned n_layers,
17 const float contrast_thr, const float edge_thr,
18 const float init_sigma, const bool double_input,
19 const float img_scale, const float feature_ratio) {
20 af_features temp_feat;
21 af_array temp_desc = 0;
22 AF_THROW(af_sift(&temp_feat, &temp_desc, in.get(), n_layers, contrast_thr,
23 edge_thr, init_sigma, double_input, img_scale,
24 feature_ratio));
25
26 dim_t num = 0;
27 AF_THROW(af_get_features_num(&num, temp_feat));
28 feat = features(temp_feat);
29 desc = array(temp_desc);
30}
31
32void gloh(features& feat, array& desc, const array& in, const unsigned n_layers,
33 const float contrast_thr, const float edge_thr,

Callers

nothing calls this directly

Calls 4

af_siftFunction · 0.50
af_get_features_numFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected