forked from arrayfire/arrayfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeatures.h
More file actions
70 lines (50 loc) · 1.69 KB
/
Copy pathfeatures.h
File metadata and controls
70 lines (50 loc) · 1.69 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*******************************************************
* Copyright (c) 2014, 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
********************************************************/
#pragma once
#include <af/defines.h>
typedef void * af_features;
#ifdef __cplusplus
namespace af
{
class array;
class AFAPI features {
private:
af_features feat;
public:
features();
features(const size_t n);
features(af_features f);
~features();
features& operator= (const features& f);
size_t getNumFeatures() const;
array getX() const;
array getY() const;
array getScore() const;
array getOrientation() const;
array getSize() const;
af_features get() const;
};
}
#endif
#ifdef __cplusplus
extern "C" {
#endif
AFAPI af_err af_create_features(af_features *feat, dim_t num);
AFAPI af_err af_retain_features(af_features *out, const af_features feat);
AFAPI af_err af_get_features_num(dim_t *num, const af_features feat);
AFAPI af_err af_get_features_xpos(af_array *out, const af_features feat);
AFAPI af_err af_get_features_ypos(af_array *out, const af_features feat);
AFAPI af_err af_get_features_score(af_array *score, const af_features feat);
AFAPI af_err af_get_features_orientation(af_array *orientation, const af_features feat);
AFAPI af_err af_get_features_size(af_array *size, const af_features feat);
// Destroy af_features
AFAPI af_err af_release_features(af_features feat);
#ifdef __cplusplus
}
#endif