Point Cloud Library (PCL)  1.14.1-dev
Namespaces | Functions
distances.h File Reference
#include <limits>
#include <pcl/types.h>
#include <pcl/point_types.h>
#include <Eigen/Core>
+ Include dependency graph for distances.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Define standard C methods to do distance calculations.

Definition in file distances.h.

Namespaces

 pcl
 

Functions

PCL_EXPORTS void pcl::lineToLineSegment (const Eigen::VectorXf &line_a, const Eigen::VectorXf &line_b, Eigen::Vector4f &pt1_seg, Eigen::Vector4f &pt2_seg)
 Get the shortest 3D segment between two 3D lines. More...
 
double pcl::sqrPointToLineDistance (const Eigen::Vector4f &pt, const Eigen::Vector4f &line_pt, const Eigen::Vector4f &line_dir)
 Get the square distance from a point to a line (represented by a point and a direction) More...
 
double pcl::sqrPointToLineDistance (const Eigen::Vector4f &pt, const Eigen::Vector4f &line_pt, const Eigen::Vector4f &line_dir, const double sqr_length)
 Get the square distance from a point to a line (represented by a point and a direction) More...
 
template<typename PointT >
double pcl::getMaxSegment (const pcl::PointCloud< PointT > &cloud, PointT &pmin, PointT &pmax)
 Obtain the maximum segment in a given set of points, and return the minimum and maximum points. More...
 
template<typename PointT >
double pcl::getMaxSegment (const pcl::PointCloud< PointT > &cloud, const Indices &indices, PointT &pmin, PointT &pmax)
 Obtain the maximum segment in a given set of points, and return the minimum and maximum points. More...
 
template<typename PointType1 , typename PointType2 >
float pcl::squaredEuclideanDistance (const PointType1 &p1, const PointType2 &p2)
 Calculate the squared euclidean distance between the two given points. More...
 
template<>
float pcl::squaredEuclideanDistance (const PointXY &p1, const PointXY &p2)
 Calculate the squared euclidean distance between the two given points. More...
 
template<typename PointType1 , typename PointType2 >
float pcl::euclideanDistance (const PointType1 &p1, const PointType2 &p2)
 Calculate the euclidean distance between the two given points. More...