Documentation - C API
fisher.c File Reference

Fisher - Declaration. More...

#include "fisher.h"
#include "gmm.h"
#include "mathop.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

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

Author:
David Novotny

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:
dataTypethe type of the input data (VL_TYPE_DOUBLE or VL_TYPE_FLOAT).
encFisher vector (output).
meansGaussian mixture means.
dimensiondimension of the data.
numClustersnumber of Gaussians mixture components.
covariancesGaussian mixture diagonal covariances.
priorsGaussian mixture prior probabilities.
datavectors to encode.
numDatanumber of vectors to encode.
flagsoptions.

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)