| 1 |
/** @file vlad.h |
| 2 |
** @brief VLAD encoding (@ref vlad) |
| 3 |
** @author David Novotny |
| 4 |
** @author Andrea Vedaldi |
| 5 |
** @see @ref vlad |
| 6 |
**/ |
| 7 |
|
| 8 |
/* |
| 9 |
Copyright (C) 2013 David Novotny and Andera Vedaldi. |
| 10 |
All rights reserved. |
| 11 |
|
| 12 |
This file is part of the VLFeat library and is made available under |
| 13 |
the terms of the BSD license (see the COPYING file). |
| 14 |
*/ |
| 15 |
|
| 16 |
#ifndef VL_VLAD_H |
| 17 |
#define VL_VLAD_H |
| 18 |
|
| 19 |
#include "generic.h" |
| 20 |
|
| 21 |
/** @name VLAD options |
| 22 |
** @{ */ |
| 23 |
#define VL_VLAD_FLAG_NORMALIZE_COMPONENTS (0x1 << 0) |
| 24 |
#define VL_VLAD_FLAG_SQUARE_ROOT (0x1 << 1) |
| 25 |
#define VL_VLAD_FLAG_UNNORMALIZED (0x1 << 2) |
| 26 |
#define VL_VLAD_FLAG_NORMALIZE_MASS (0x1 << 3) |
| 27 |
|
| 28 |
/** @def VL_VLAD_FLAG_NORMALIZE_COMPONENTS |
| 29 |
** @brief Normalize each VLAD component individually. |
| 30 |
**/ |
| 31 |
|
| 32 |
/** @def VL_VLAD_FLAG_SQUARE_ROOT |
| 33 |
** @brief Use signed squared-root. |
| 34 |
**/ |
| 35 |
|
| 36 |
/** @def VL_VLAD_FLAG_UNNORMALIZED |
| 37 |
** @brief Do not globally normalize the VLAD descriptor. |
| 38 |
**/ |
| 39 |
|
| 40 |
/** @def VL_VLAD_FLAG_NORMALIZE_MASS |
| 41 |
** @brief Normalize each component by the number of features assigned to it. |
| 42 |
**/ |
| 43 |
/** @} */ |
| 44 |
|
| 45 |
VL_EXPORT void vl_vlad_encode |
| 46 |
(void * enc, vl_type dataType, |
| 47 |
void const * means, vl_size dimension, vl_size numClusters, |
| 48 |
void const * data, vl_size numData, |
| 49 |
void const * assignments, |
| 50 |
int flags) ; |
| 51 |
|
| 52 |
/* VL_VLAD_H */ |
| 53 |
#endif |