Documentation - C API
ikmeans_init.tc File Reference

Integer K-Means - Initialization - Definition. More...

#include "random.h"

Functions

static void alloc (VlIKMFilt *f, int M, int K)
 Helper function to allocate memory for an IKM quantizer.
static void vl_ikm_init_helper (VlIKMFilt *f)
 Helper function to initialize the quantizer.
void vl_ikm_init (VlIKMFilt *f, vl_ikm_acc const *centers, int M, int K)
 Initialize quantizer with centers.
void vl_ikm_init_rand (VlIKMFilt *f, int M, int K)
 Initialize quantizer with random centers.
void vl_ikm_init_rand_data (VlIKMFilt *f, vl_uint8 const *data, int M, int N, int K)
 Initialize with centers from random data.

Detailed Description

Author:
Andrea Vedaldi

Function Documentation

static void alloc ( VlIKMFilt f,
int  M,
int  K 
)
static
Parameters:
fquantizer.
Mdata dimensionality.
Knumber of clusters.
void vl_ikm_init ( VlIKMFilt f,
vl_ikm_acc const *  centers,
int  M,
int  K 
)
Parameters:
fIKM quantizer.
centerscenters.
Mdata dimensionality.
Knumber of clusters.
static void vl_ikm_init_helper ( VlIKMFilt f)
static
Parameters:
fIKM quantizer.
void vl_ikm_init_rand ( VlIKMFilt f,
int  M,
int  K 
)
Parameters:
fIKM quantizer.
Mdata dimensionality.
Knumber of clusters.
void vl_ikm_init_rand_data ( VlIKMFilt f,
vl_uint8 const *  data,
int  M,
int  N,
int  K 
)
Parameters:
fIKM quantizer.
datadata.
Mdata dimensionality.
Nnumber of data.
Knumber of clusters.