43#if AF_API_VERSION >= 38
47#if AF_COMPILER_CXX_RVALUE_REFERENCES
A multi dimensional data container.
Represents a feature returned by a feature detector.
features(const features &other)
Copy constructor.
array getOrientation() const
Returns an array with the orientations of the features.
array getScore() const
Returns an array with the score of the features.
features(af_features f)
Creates a features object from a C af_features object.
array getSize() const
Returns an array that represents the size of the features.
features()
Default constructor. Creates a features object with new features.
features(const size_t n)
Creates a features object with n features with undefined locations.
af_features get() const
Returns the underlying C af_features object.
array getY() const
Returns an af::array which represents the y locations of a feature.
size_t getNumFeatures() const
Returns the number of features represented by this object.
array getX() const
Returns an af::array which represents the x locations of a feature.
AFAPI af_err af_get_features_ypos(af_array *out, const af_features feat)
Returns the y positions of the features.
AFAPI af_err af_get_features_size(af_array *size, const af_features feat)
Returns the size of the features.
AFAPI af_err af_retain_features(af_features *out, const af_features feat)
Increases the reference count of the feature and all of its associated arrays.
AFAPI af_err af_get_features_orientation(af_array *orientation, const af_features feat)
Returns the orientations of the features.
AFAPI af_err af_get_features_score(af_array *score, const af_features feat)
Returns the scores of the features.
AFAPI af_err af_release_features(af_features feat)
Reduces the reference count of each of the features.
AFAPI af_err af_get_features_num(dim_t *num, const af_features feat)
Returns the number of features associated with this object.
AFAPI af_err af_create_features(af_features *feat, dim_t num)
Creates a new af_feature object with num features.
AFAPI af_err af_get_features_xpos(af_array *out, const af_features feat)
Returns the x positions of the features.