You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
/** @file fisher.h
|
|
** @brief Fisher encoding (@ref fisher)
|
|
** @author David Novotny
|
|
** @author Andrea Vedaldi
|
|
** @see @ref fisher
|
|
**/
|
|
|
|
/*
|
|
Copyright (C) 2013 David Novotny and Andrea Vedaldi.
|
|
All rights reserved.
|
|
|
|
This file is part of the VLFeat library and is made available under
|
|
the terms of the BSD license (see the COPYING file).
|
|
*/
|
|
|
|
#ifndef VL_FISHER_H
|
|
#define VL_FISHER_H
|
|
|
|
#include "generic.h"
|
|
|
|
/** @name Fisher vector options
|
|
** @{ */
|
|
#define VL_FISHER_FLAG_SQUARE_ROOT (0x1 << 0)
|
|
#define VL_FISHER_FLAG_NORMALIZED (0x1 << 1)
|
|
#define VL_FISHER_FLAG_IMPROVED (VL_FISHER_FLAG_NORMALIZED|VL_FISHER_FLAG_SQUARE_ROOT)
|
|
#define VL_FISHER_FLAG_FAST (0x1 << 2)
|
|
|
|
/** @def VL_FISHER_FLAG_SQUARE_ROOT
|
|
** @brief Use signed squared-root (@ref fisher-normalization).
|
|
**/
|
|
|
|
/** @def VL_FISHER_FLAG_NORMALIZED
|
|
** @brief Gobally normalize the Fisher vector in L2 norm (@ref fisher-normalization).
|
|
**/
|
|
|
|
/** @def VL_FISHER_FLAG_IMPROVED
|
|
** @brief Improved Fisher vector.
|
|
** This is the same as @c VL_FISHER_FLAG_SQUARE_ROOT|VL_FISHER_FLAG_NORMALIZED.
|
|
**/
|
|
|
|
/** @def VL_FISHER_FLAG_FAST
|
|
** @brief Fast but more approximate calculations (@ref fisher-fast).
|
|
** Keep only the larges data to cluster assignment (posterior).
|
|
**/
|
|
|
|
/** @} */
|
|
|
|
VL_EXPORT vl_size 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) ;
|
|
|
|
/* VL_FISHER_H */
|
|
#endif
|