|
Point Cloud Library (PCL)
1.8.1
|
OrganizedNeighborSearch class More...
#include </build/pcl-qv3n_B/pcl-1.8.1+dfsg1/cuda/nn/organized_neighbor_search.h>
Classes | |
| class | nearestNeighborCandidate |
| nearestNeighborCandidate entry for the nearest neighbor candidate queue More... | |
| class | radiusSearchLoopkupEntry |
| radiusSearchLoopkupEntry entry for radius search lookup vector More... | |
Public Types | |
| typedef pcl::PointCloud< PointT > | PointCloud |
| typedef boost::shared_ptr< PointCloud > | PointCloudPtr |
| typedef boost::shared_ptr< const PointCloud > | PointCloudConstPtr |
Public Member Functions | |
| OrganizedNeighborSearch () | |
| OrganizedNeighborSearch constructor. More... | |
| virtual | ~OrganizedNeighborSearch () |
| Empty deconstructor. More... | |
| void | setInputCloud (const PointCloudConstPtr &cloud_arg) |
| Provide a pointer to the input data set. More... | |
| int | radiusSearch (const PointCloudConstPtr &cloud_arg, int index_arg, double radius_arg, std::vector< int > &k_indices_arg, std::vector< float > &k_sqr_distances_arg, int max_nn_arg=INT_MAX) |
| Search for all neighbors of query point that are within a given radius. More... | |
| int | radiusSearch (int index_arg, const double radius_arg, std::vector< int > &k_indices_arg, std::vector< float > &k_sqr_distances_arg, int max_nn_arg=INT_MAX) const |
| Search for all neighbors of query point that are within a given radius. More... | |
| int | radiusSearch (const PointT &p_q_arg, const double radius_arg, std::vector< int > &k_indices_arg, std::vector< float > &k_sqr_distances_arg, int max_nn_arg=INT_MAX) const |
| Search for all neighbors of query point that are within a given radius. More... | |
| int | nearestKSearch (const PointCloudConstPtr &cloud_arg, int index_arg, int k_arg, std::vector< int > &k_indices_arg, std::vector< float > &k_sqr_distances_arg) |
| Search for k-nearest neighbors at the query point. More... | |
| int | nearestKSearch (int index_arg, int k_arg, std::vector< int > &k_indices_arg, std::vector< float > &k_sqr_distances_arg) |
| Search for k-nearest neighbors at query point. More... | |
| int | nearestKSearch (const PointT &p_q_arg, int k_arg, std::vector< int > &k_indices_arg, std::vector< float > &k_sqr_distances_arg) |
| Search for k-nearest neighbors at given query point. More... | |
| double | getMaxDistance () const |
| Get the maximum allowed distance between the query point and its nearest neighbors. More... | |
| void | setMaxDistance (double max_dist) |
| Set the maximum allowed distance between the query point and its nearest neighbors. More... | |
Protected Member Functions | |
| const PointT & | getPointByIndex (const unsigned int index_arg) const |
| Get point at index from input pointcloud dataset. More... | |
| void | generateRadiusLookupTable (unsigned int width, unsigned int height) |
| Generate radius lookup table. More... | |
| void | pointPlaneProjection (const PointT &point, int &xpos, int &ypos) const |
| void | getProjectedRadiusSearchBox (const PointT &point_arg, double squared_radius_arg, int &minX_arg, int &minY_arg, int &maxX_arg, int &maxY_arg) const |
| void | estimateFocalLengthFromInputCloud () |
| Estimate focal length parameter that was used during point cloud generation. More... | |
| virtual std::string | getName () const |
| Class getName method. More... | |
Protected Attributes | |
| PointCloudConstPtr | input_ |
| Pointer to input point cloud dataset. More... | |
| double | max_distance_ |
| Maximum allowed distance between the query point and its k-neighbors. More... | |
| double | focalLength_ |
| Global focal length parameter. More... | |
| std::vector< radiusSearchLoopkupEntry > | radiusSearchLookup_ |
| Precalculated radius search lookup vector. More... | |
| int | radiusLookupTableWidth_ |
| int | radiusLookupTableHeight_ |
OrganizedNeighborSearch class
Definition at line 59 of file organized_neighbor_search.h.
| typedef pcl::PointCloud<PointT> pcl::OrganizedNeighborSearch< PointT >::PointCloud |
Definition at line 82 of file organized_neighbor_search.h.
| typedef boost::shared_ptr<const PointCloud> pcl::OrganizedNeighborSearch< PointT >::PointCloudConstPtr |
Definition at line 84 of file organized_neighbor_search.h.
| typedef boost::shared_ptr<PointCloud> pcl::OrganizedNeighborSearch< PointT >::PointCloudPtr |
Definition at line 83 of file organized_neighbor_search.h.
|
inline |
OrganizedNeighborSearch constructor.
Definition at line 66 of file organized_neighbor_search.h.
References pcl::OrganizedNeighborSearch< PointT >::focalLength_, and pcl::OrganizedNeighborSearch< PointT >::max_distance_.
|
inlinevirtual |
Empty deconstructor.
Definition at line 77 of file organized_neighbor_search.h.
|
protected |
Estimate focal length parameter that was used during point cloud generation.
Definition at line 378 of file organized_neighbor_search.hpp.
Referenced by pcl::OrganizedNeighborSearch< PointT >::pointPlaneProjection(), and pcl::OrganizedNeighborSearch< PointT >::setInputCloud().
|
protected |
Generate radius lookup table.
It is used to subsequentially iterate over points which are close to the search point
| width | of organized point cloud |
| height | of organized point cloud |
Definition at line 411 of file organized_neighbor_search.hpp.
Referenced by pcl::OrganizedNeighborSearch< PointT >::setInputCloud().
|
inline |
Get the maximum allowed distance between the query point and its nearest neighbors.
Definition at line 181 of file organized_neighbor_search.h.
References pcl::OrganizedNeighborSearch< PointT >::max_distance_.
|
inlineprotectedvirtual |
Class getName method.
Definition at line 314 of file organized_neighbor_search.h.
|
protected |
Get point at index from input pointcloud dataset.
| index_arg | index representing the point in the dataset given by setInputCloud |
Definition at line 439 of file organized_neighbor_search.hpp.
|
protected |
Definition at line 97 of file organized_neighbor_search.hpp.
Referenced by pcl::OrganizedNeighborSearch< PointT >::pointPlaneProjection().
| int pcl::OrganizedNeighborSearch< PointT >::nearestKSearch | ( | const PointCloudConstPtr & | cloud_arg, |
| int | index_arg, | ||
| int | k_arg, | ||
| std::vector< int > & | k_indices_arg, | ||
| std::vector< float > & | k_sqr_distances_arg | ||
| ) |
Search for k-nearest neighbors at the query point.
| cloud_arg | the point cloud data |
| index_arg | the index in cloud representing the query point |
| k_arg | the number of neighbors to search for |
| k_indices_arg | the resultant indices of the neighboring points (must be resized to k a priori!) |
| k_sqr_distances_arg | the resultant squared distances to the neighboring points (must be resized to k a priori!) |
Definition at line 155 of file organized_neighbor_search.hpp.
Referenced by pcl::OrganizedNeighborSearch< PointT >::setInputCloud().
| int pcl::OrganizedNeighborSearch< PointT >::nearestKSearch | ( | int | index_arg, |
| int | k_arg, | ||
| std::vector< int > & | k_indices_arg, | ||
| std::vector< float > & | k_sqr_distances_arg | ||
| ) |
Search for k-nearest neighbors at query point.
| index_arg | index representing the query point in the dataset given by setInputCloud. If indices were given in setInputCloud, index will be the position in the indices vector. |
| k_arg | the number of neighbors to search for |
| k_indices_arg | the resultant indices of the neighboring points (must be resized to k a priori!) |
| k_sqr_distances_arg | the resultant squared distances to the neighboring points (must be resized to k a priori!) |
Definition at line 143 of file organized_neighbor_search.hpp.
| int pcl::OrganizedNeighborSearch< PointT >::nearestKSearch | ( | const PointT & | p_q_arg, |
| int | k_arg, | ||
| std::vector< int > & | k_indices_arg, | ||
| std::vector< float > & | k_sqr_distances_arg | ||
| ) |
Search for k-nearest neighbors at given query point.
| p_q_arg | the given query point |
| k_arg | the number of neighbors to search for |
| k_indices_arg | the resultant indices of the neighboring points (must be resized to k a priori!) |
| k_sqr_distances_arg | the resultant squared distances to the neighboring points (must be resized to k a priori!) |
Definition at line 167 of file organized_neighbor_search.hpp.
References pcl::OrganizedNeighborSearch< PointT >::nearestNeighborCandidate::index_, and pcl::OrganizedNeighborSearch< PointT >::nearestNeighborCandidate::squared_distance_.
|
inlineprotected |
| int pcl::OrganizedNeighborSearch< PointT >::radiusSearch | ( | const PointCloudConstPtr & | cloud_arg, |
| int | index_arg, | ||
| double | radius_arg, | ||
| std::vector< int > & | k_indices_arg, | ||
| std::vector< float > & | k_sqr_distances_arg, | ||
| int | max_nn_arg = INT_MAX |
||
| ) |
Search for all neighbors of query point that are within a given radius.
| cloud_arg | the point cloud data |
| index_arg | the index in cloud representing the query point |
| radius_arg | the radius of the sphere bounding all of p_q's neighbors |
| k_indices_arg | the resultant indices of the neighboring points |
| k_sqr_distances_arg | the resultant squared distances to the neighboring points |
| max_nn_arg | if given, bounds the maximum returned neighbors to this value |
Definition at line 14 of file organized_neighbor_search.hpp.
Referenced by pcl::OrganizedNeighborSearch< PointT >::setInputCloud().
| int pcl::OrganizedNeighborSearch< PointT >::radiusSearch | ( | int | index_arg, |
| const double | radius_arg, | ||
| std::vector< int > & | k_indices_arg, | ||
| std::vector< float > & | k_sqr_distances_arg, | ||
| int | max_nn_arg = INT_MAX |
||
| ) | const |
Search for all neighbors of query point that are within a given radius.
| index_arg | index representing the query point in the dataset given by setInputCloud. If indices were given in setInputCloud, index will be the position in the indices vector |
| radius_arg | radius of the sphere bounding all of p_q's neighbors |
| k_indices_arg | the resultant indices of the neighboring points |
| k_sqr_distances_arg | the resultant squared distances to the neighboring points |
| max_nn_arg | if given, bounds the maximum returned neighbors to this value |
Definition at line 26 of file organized_neighbor_search.hpp.
| int pcl::OrganizedNeighborSearch< PointT >::radiusSearch | ( | const PointT & | p_q_arg, |
| const double | radius_arg, | ||
| std::vector< int > & | k_indices_arg, | ||
| std::vector< float > & | k_sqr_distances_arg, | ||
| int | max_nn_arg = INT_MAX |
||
| ) | const |
Search for all neighbors of query point that are within a given radius.
| p_q_arg | the given query point |
| radius_arg | the radius of the sphere bounding all of p_q's neighbors |
| k_indices_arg | the resultant indices of the neighboring points |
| k_sqr_distances_arg | the resultant squared distances to the neighboring points |
| max_nn_arg | if given, bounds the maximum returned neighbors to this value |
Definition at line 40 of file organized_neighbor_search.hpp.
|
inline |
Provide a pointer to the input data set.
| cloud_arg | the const boost shared pointer to a PointCloud message |
Definition at line 91 of file organized_neighbor_search.h.
References pcl::OrganizedNeighborSearch< PointT >::estimateFocalLengthFromInputCloud(), pcl::OrganizedNeighborSearch< PointT >::generateRadiusLookupTable(), pcl::OrganizedNeighborSearch< PointT >::input_, pcl::OrganizedNeighborSearch< PointT >::nearestKSearch(), and pcl::OrganizedNeighborSearch< PointT >::radiusSearch().
|
inline |
Set the maximum allowed distance between the query point and its nearest neighbors.
Definition at line 188 of file organized_neighbor_search.h.
References pcl::OrganizedNeighborSearch< PointT >::max_distance_.
|
protected |
Global focal length parameter.
Definition at line 330 of file organized_neighbor_search.h.
Referenced by pcl::OrganizedNeighborSearch< PointT >::OrganizedNeighborSearch(), and pcl::OrganizedNeighborSearch< PointT >::pointPlaneProjection().
|
protected |
Pointer to input point cloud dataset.
Definition at line 324 of file organized_neighbor_search.h.
Referenced by pcl::OrganizedNeighborSearch< PointT >::setInputCloud().
|
protected |
Maximum allowed distance between the query point and its k-neighbors.
Definition at line 327 of file organized_neighbor_search.h.
Referenced by pcl::OrganizedNeighborSearch< PointT >::getMaxDistance(), pcl::OrganizedNeighborSearch< PointT >::OrganizedNeighborSearch(), and pcl::OrganizedNeighborSearch< PointT >::setMaxDistance().
|
protected |
Definition at line 335 of file organized_neighbor_search.h.
|
protected |
Definition at line 334 of file organized_neighbor_search.h.
|
protected |
Precalculated radius search lookup vector.
Definition at line 333 of file organized_neighbor_search.h.