VLFeat - Documentation > C API

# VLFeat.org

Documentation> C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

Functions
ikmeans_lloyd.tc File Reference

Integer K-Means - LLoyd Algorithm - Definition. More...

## Functions

static void | vl_ikm_init_lloyd (VlIKMFilt *f)
| Helper function to initialize a filter for Lloyd algorithm. More...
static int | vl_ikm_train_lloyd (VlIKMFilt *f, vl_uint8 const *data, vl_size N)
| LLoyd algorithm. More...
static void | vl_ikm_push_lloyd (VlIKMFilt *f, vl_uint32 *asgn, vl_uint8 const *data, vl_size N)
| LLoyd algorithm. More...

## Detailed Description

Author
  Brian Fulkerson
  Andrea Vedaldi

## Function Documentation

static void vl_ikm_init_lloyd | ( | VlIKMFilt * | f | ) |

static

Parameters

  f | filter.

static void vl_ikm_push_lloyd | ( | VlIKMFilt * | f,
|  | vl_uint32 * | asgn,
|  | vl_uint8 const * | data,
|  | vl_size | N
| ) |  |

static

Parameters

  f | IKM quantizer.
  asgn | Assignments (out).
  data | Data to quantize.
  N | Number of data.

static int vl_ikm_train_lloyd | ( | VlIKMFilt * | f,
|  | vl_uint8 const * | data,
|  | vl_size | N
| ) |  |

static

Parameters

  f | IKM quantizer.
  data | Training data.
  N | Number of traning data.

Returns
  error code.