Loading...
Searching...
No Matches
distances.h File Reference
Module common
`#include <limits>`
`#include <pcl/types.h>`
`#include <pcl/point_types.h>`
`#include <Eigen/Core>`

Go to the source code of this file.

## Detailed Description

Define standard C methods to do distance calculations.

Definition in file distances.h.

## Namespaces

namespace | 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.
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).
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).
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.
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.
template<typename PointType1, typename PointType2>
float | pcl::squaredEuclideanDistance (const PointType1 &p1, const PointType2 &p2)
| Calculate the squared euclidean distance between the two given points.
template<>
float | pcl::squaredEuclideanDistance (const PointXY &p1, const PointXY &p2)
| Calculate the squared euclidean distance between the two given points.
template<typename PointType1, typename PointType2>
float | pcl::euclideanDistance (const PointType1 &p1, const PointType2 &p2)
| Calculate the euclidean distance between the two given points.