A high-performance general-purpose compute library

Lookup values of an array based on sequences and/or arrays. More...

Data Structures

class  features
 Represents a feature returned by a feature detector. More...
 

Functions

AFAPI af_err af_create_features (af_features *feat, dim_t num)
 Creates a new af_feature object with num features. More...
 
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. More...
 
AFAPI af_err af_get_features_num (dim_t *num, const af_features feat)
 Returns the number of features associated with this object. More...
 
AFAPI af_err af_get_features_xpos (af_array *out, const af_features feat)
 Returns the x positions of the features. More...
 
AFAPI af_err af_get_features_ypos (af_array *out, const af_features feat)
 Returns the y positions of the features. More...
 
AFAPI af_err af_get_features_score (af_array *score, const af_features feat)
 Returns the scores of the features. More...
 
AFAPI af_err af_get_features_orientation (af_array *orientation, const af_features feat)
 Returns the orientations of the features. More...
 
AFAPI af_err af_get_features_size (af_array *size, const af_features feat)
 Returns the size of the features. More...
 
AFAPI af_err af_release_features (af_features feat)
 Reduces the reference count of each of the features. More...
 

Detailed Description

Lookup values of an array based on sequences and/or arrays.


Function Documentation

◆ af_create_features()

AFAPI af_err af_create_features ( af_features feat,
dim_t  num 
)

Creates a new af_feature object with num features.

Parameters
[out]featThe new feature that will be created
[in]numThe number of features that will be in the new features object
Returns
AF_SUCCESS if successful

◆ af_get_features_num()

AFAPI af_err af_get_features_num ( dim_t num,
const af_features  feat 
)

Returns the number of features associated with this object.

Parameters
[out]numThe number of features in the object
[in]featThe feature whose count will be returned

◆ af_get_features_orientation()

AFAPI af_err af_get_features_orientation ( af_array orientation,
const af_features  feat 
)

Returns the orientations of the features.

Parameters
[out]orientationAn array with the orientations of the features
[in]featThe features object

◆ af_get_features_score()

AFAPI af_err af_get_features_score ( af_array score,
const af_features  feat 
)

Returns the scores of the features.

Parameters
[out]scoreAn array with scores of the features
[in]featThe features object

◆ af_get_features_size()

AFAPI af_err af_get_features_size ( af_array size,
const af_features  feat 
)

Returns the size of the features.

Parameters
[out]sizeAn array with the sizes of the features
[in]featThe features object

◆ af_get_features_xpos()

AFAPI af_err af_get_features_xpos ( af_array out,
const af_features  feat 
)

Returns the x positions of the features.

Parameters
[out]outAn array with all x positions of the features
[in]featThe features object

◆ af_get_features_ypos()

AFAPI af_err af_get_features_ypos ( af_array out,
const af_features  feat 
)

Returns the y positions of the features.

Parameters
[out]outAn array with all y positions of the features
[in]featThe features object

◆ af_release_features()

AFAPI af_err af_release_features ( af_features  feat)

Reduces the reference count of each of the features.

Parameters
[in]featThe features object whose reference count will be reduced

◆ af_retain_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.

Parameters
[out]outThe reference to the incremented array
[in]featThe features object whose will be incremented object
Returns
AF_SUCCESS if successful