An array of pointers to functions that perform the extraction. More...
#include <libxtract.h>
Data Fields | |
int | n_filters |
float ** | filters |
An array of pointers to functions that perform the extraction.
*data,: | a pointer to the start of the input data (usually the first element in an array) | |
N,: | the number of elements to be processed | |
*argv,: | an abitrary number of additional arguments, used to pass additional parameters to the function being called. All arguments are compulsary! | |
*result,: | a pointer to the first element in the result |
For scalar and delta features, *result will point to a single value.
For vector features it will point to the first element in an array.
Memory for this array must be allocated and freed by the calling function.
All functions return an integer error code as descibed in the enumeration return_codes_
The preprocessor macro: XTRACT must be defined before this can be used
example:
#include <stdio.h> #define XTRACT #include "libxtract.h" main () { float values[] = {1.0, 2.0, 3.0, 4.0, 5.0}; int N = 5; float mean; xtract[MEAN]((void *)values, N, NULL, &mean); printf("Mean = %.2f\n", mean); }