Typedefs | Functions
nearest_neighbors.cpp File Reference
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/common/common.h>
#include <pcl/common/transforms.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/console/parse.h>
#include <pcl/console/print.h>
#include <pcl/io/pcd_io.h>
#include <iostream>
#include <flann/flann.h>
#include <flann/io/hdf5.h>
#include <boost/filesystem.hpp>
Include dependency graph for nearest_neighbors.cpp:

Go to the source code of this file.

Typedefs

typedef std::pair< std::string,
std::vector< float > > 
vfh_model

Functions

bool loadFileList (std::vector< vfh_model > &models, const std::string &filename)
 Load the list of file model names from an ASCII file.
bool loadHist (const boost::filesystem::path &path, vfh_model &vfh)
 Loads an n-D histogram file as a VFH signature.
int main (int argc, char **argv)
void nearestKSearch (flann::Index< flann::ChiSquareDistance< float > > &index, const vfh_model &model, int k, flann::Matrix< int > &indices, flann::Matrix< float > &distances)
 Search for the closest k neighbors.

Typedef Documentation

typedef std::pair<std::string, std::vector<float> > vfh_model

Definition at line 14 of file nearest_neighbors.cpp.


Function Documentation

bool loadFileList ( std::vector< vfh_model > &  models,
const std::string &  filename 
)

Load the list of file model names from an ASCII file.

Parameters:
modelsthe resultant list of model name
filenamethe input file name

Definition at line 89 of file nearest_neighbors.cpp.

bool loadHist ( const boost::filesystem::path &  path,
vfh_model vfh 
)

Loads an n-D histogram file as a VFH signature.

Parameters:
paththe input file name
vfhthe resultant VFH model

Definition at line 21 of file nearest_neighbors.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 111 of file nearest_neighbors.cpp.

void nearestKSearch ( flann::Index< flann::ChiSquareDistance< float > > &  index,
const vfh_model model,
int  k,
flann::Matrix< int > &  indices,
flann::Matrix< float > &  distances 
) [inline]

Search for the closest k neighbors.

Parameters:
indexthe tree
modelthe query model
kthe number of neighbors to search for
indicesthe resultant neighbor indices
distancesthe resultant neighbor distances

Definition at line 71 of file nearest_neighbors.cpp.



pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:19:13