forked from arrayfire/arrayfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeatures.cpp
More file actions
37 lines (30 loc) · 1.12 KB
/
features.cpp
File metadata and controls
37 lines (30 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
********************************************************/
#include <af/array.h>
#include <af/features.h>
#include "symbol_manager.hpp"
af_err af_create_features(af_features *feat, dim_t num) {
return CALL(feat, num);
}
af_err af_retain_features(af_features *out, const af_features feat) {
return CALL(out, feat);
}
af_err af_get_features_num(dim_t *num, const af_features feat) {
return CALL(num, feat);
}
#define FEAT_HAPI_DEF(af_func) \
af_err af_func(af_array *out, const af_features feat) { \
return CALL(out, feat); \
}
FEAT_HAPI_DEF(af_get_features_xpos)
FEAT_HAPI_DEF(af_get_features_ypos)
FEAT_HAPI_DEF(af_get_features_score)
FEAT_HAPI_DEF(af_get_features_orientation)
FEAT_HAPI_DEF(af_get_features_size)
af_err af_release_features(af_features feat) { return CALL(feat); }