fisher.h File Reference
Fisher encoding (Fisher Vector encoding (FV)) More...
#include "generic.h"
Macros | |
Fisher vector options | |
#define | VL_FISHER_FLAG_SQUARE_ROOT (0x1 << 0) |
Use signed squared-root. | |
#define | VL_FISHER_FLAG_NORMALIZED (0x1 << 1) |
Gobally normalize the Fisher vector in L2 norm. | |
#define | VL_FISHER_FLAG_IMPROVED (VL_FISHER_FLAG_NORMALIZED|VL_FISHER_FLAG_SQUARE_ROOT) |
Improved Fisher vector. This is the same as VL_FISHER_FLAG_SQUARE_ROOT|VL_FISHER_FLAG_NORMALIZED . | |
#define | VL_FISHER_FLAG_FAST (0x1 << 2) |
Fast but more approximate calculations Clamps to zero data to cluster assignments that are very small. Typically this makes the computation much faster. |
Functions | |
void | vl_fisher_encode (void *enc, vl_type dataType, void const *means, vl_size dimension, vl_size numClusters, void const *covariances, void const *priors, void const *data, vl_size numData, int flags) |
Fisher vector encoding of a set of vectors. |
Detailed Description
- See also:
- Fisher Vector encoding (FV)
Function Documentation
void vl_fisher_encode | ( | void * | enc, |
vl_type | dataType, | ||
void const * | means, | ||
vl_size | dimension, | ||
vl_size | numClusters, | ||
void const * | covariances, | ||
void const * | priors, | ||
void const * | data, | ||
vl_size | numData, | ||
int | flags | ||
) |
- Parameters:
-
dataType the type of the input data (VL_TYPE_DOUBLE or VL_TYPE_FLOAT). enc Fisher vector (output). means Gaussian mixture means. dimension dimension of the data. numClusters number of Gaussians mixture components. covariances Gaussian mixture diagonal covariances. priors Gaussian mixture prior probabilities. data vectors to encode. numData number of vectors to encode. flags options.
means and covariances have dimension rows and numCluster columns. priors is a vector of size numCluster. data has dimension rows and numData columns. enc is a vecotr of size equal to twice the product of dimension and numClusters. All these vectors and matrices have the same class, as specified by dataType.
flag can be used to control several options: VL_FISHER_FLAG_SQUARE_ROOT, VL_FISHER_FLAG_NORMALIZED, VL_FISHER_FLAG_IMPROVED.
- See also:
- Fisher Vector encoding (FV)