| 14 | namespace af { |
| 15 | |
| 16 | void 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 | |
| 32 | void gloh(features& feat, array& desc, const array& in, const unsigned n_layers, |
| 33 | const float contrast_thr, const float edge_thr, |
nothing calls this directly
no test coverage detected