libvot  0.1.3
A C++11 multithread library for image retrieval
Namespaces | Functions | Variables
vocab_tree.cpp File Reference

vocabulary tree functions implementations More...

#include <iostream>
#include <cmath>
#include <cassert>
#include <limits>
#include <thread>
#include <algorithm>
#include "vocab_tree.h"
#include "clustering.h"

Namespaces

 vot
 namespace vot contains libvot functions and classes.
 

Functions

float l2sq (DTYPE *a, DTYPE *b, int dim)
 
void vot::MultiRecursiveBuild (TreeNode *children, size_t num_keys, int dim, int depth, int depth_curr, int bf, DTYPE **p, double *means, int *assign, int sub_thread_num)
 
void vot::MultiAddImage (TreeNode *root, float *scores, DTYPE *v, size_t image_index, int num_feature, int branch_num, int dim, bool add)
 

Variables

size_t vot::leaves_count = 0
 

Detailed Description

vocabulary tree functions implementations

Function Documentation

float l2sq ( DTYPE a,
DTYPE b,
int  dim 
)