#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>
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 std::pair<std::string, std::vector<float> > vfh_model |
Definition at line 14 of file nearest_neighbors.cpp.
| bool loadFileList | ( | std::vector< vfh_model > & | models, |
| const std::string & | filename | ||
| ) |
Load the list of file model names from an ASCII file.
| models | the resultant list of model name |
| filename | the input file name |
Definition at line 89 of file nearest_neighbors.cpp.
Loads an n-D histogram file as a VFH signature.
| path | the input file name |
| vfh | the 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.
| index | the tree |
| model | the query model |
| k | the number of neighbors to search for |
| indices | the resultant neighbor indices |
| distances | the resultant neighbor distances |
Definition at line 71 of file nearest_neighbors.cpp.