features.h Source File

- Main Page
- Tutorials
- Functions
- Release Notes
- Examples

features.h
Go to the documentation of this file.
1 /*******************************************************
2 * Copyright (c) 2014, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11 #include <af/defines.h>
12
13 typedef void * af_features;
14
15 #ifdef __cplusplus
16 namespace af
17 {
18 class array;
19
20 class AFAPI features {
21 private:
22 af_features feat;
23
24 public:
25 features();
26 features(const size_t n);
27 features(af_features f);
28
29 ~features();
30
31 features& operator= (const features& f);
32
33 size_t getNumFeatures() const;
34 array getX() const;
35 array getY() const;
36 array getScore() const;
37 array getOrientation() const;
38 array getSize() const;
39 af_features get() const;
40 };
41
42 }
43 #endif
44
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48
49 AFAPI af_err af_create_features(af_features *feat, dim_t num);
50
51 AFAPI af_err af_retain_features(af_features *out, const af_features feat);
52
53 AFAPI af_err af_get_features_num(dim_t *num, const af_features feat);
54
55 AFAPI af_err af_get_features_xpos(af_array *out, const af_features feat);
56
57 AFAPI af_err af_get_features_ypos(af_array *out, const af_features feat);
58
59 AFAPI af_err af_get_features_score(af_array *score, const af_features feat);
60
61 AFAPI af_err af_get_features_orientation(af_array *orientation, const af_features feat);
62
63 AFAPI af_err af_get_features_size(af_array *size, const af_features feat);
64
65 // Destroy af_features
66 AFAPI af_err af_release_features(af_features feat);
67
68 #ifdef __cplusplus
69 }
70 #endif
af
Definition: algorithm.h:14
af_release_features
AFAPI af_err af_release_features(af_features feat)
af_features
void * af_features
Definition: features.h:13
af::array
A multi dimensional data container.
Definition: array.h:27
af_get_features_score
AFAPI af_err af_get_features_score(af_array *score, const af_features feat)
af_err
af_err
Definition: defines.h:67
af_get_features_orientation
AFAPI af_err af_get_features_orientation(af_array *orientation, const af_features feat)
defines.h
af_get_features_xpos
AFAPI af_err af_get_features_xpos(af_array *out, const af_features feat)
dim_t
long long dim_t
Definition: defines.h:50
AFAPI
#define AFAPI
Definition: defines.h:31
af_create_features
AFAPI af_err af_create_features(af_features *feat, dim_t num)
af_get_features_size
AFAPI af_err af_get_features_size(af_array *size, const af_features feat)
afcl::array
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:161
af::features
Definition: features.h:20
af_array
void * af_array
Definition: defines.h:219
af_retain_features
AFAPI af_err af_retain_features(af_features *out, const af_features feat)
af_get_features_ypos
AFAPI af_err af_get_features_ypos(af_array *out, const af_features feat)
af_get_features_num
AFAPI af_err af_get_features_num(dim_t *num, const af_features feat)