IDS peak ICV v1.4.0
Loading...
Searching...
No Matches
PointCloud< PointCloudType, PointType > Class Template Reference

#include <peak_icv/types/detail/peak_icv_point_cloud.hpp>

Inheritance diagram for PointCloud< PointCloudType, PointType >:

Public Types

using PointType = InnerPointType
 

Public Member Functions

 ~PointCloud () override
 
 PointCloud (const PointCloud &other)
 
 PointCloud (PointCloud &&other) noexcept
 
PointCloud & operator= (const PointCloud &other)
 
PointCloud & operator= (PointCloud &&other) noexcept
 
bool operator== (const PointCloud &rhs) const
 
bool operator!= (const PointCloud &rhs) const
 
const std::vector< PointType > & GetPoints () const
 
PointCloudType Transform (const TransformationMatrix3D &matrix) const
 Applies the specified transformation matrix to the point cloud.
 
PointCloudType TransformToWorkspace (const ExtrinsicParameters &extrinsicParameters) const
 Transforms the point cloud to workspace coordinates using the specified extrinsic parameters.
 
std::vector< PointType >::const_iterator cbegin () const
 
std::vector< PointType >::const_iterator cend () const
 

Detailed Description

template<typename PointCloudType, typename PointType>
class peak::icv::detail::PointCloud< PointCloudType, PointType >

Represents a generic point cloud interface for spatial data types.

Template Parameters
PointCloudTypeType of the concrete point cloud implementation.
InnerPointTypeType of the points in the point cloud.
Since
ids_peak_icv 1.1

Member Typedef Documentation

◆ PointType

template<typename PointCloudType , typename PointType >
using PointType = InnerPointType

Constructor & Destructor Documentation

◆ ~PointCloud()

template<typename PointCloudType , typename InnerPointType >
~PointCloud ( )
override

◆ PointCloud() [1/2]

template<typename PointCloudType , typename InnerPointType >
PointCloud ( const PointCloud< PointCloudType, PointType > & other)

◆ PointCloud() [2/2]

template<typename PointCloudType , typename InnerPointType >
PointCloud ( PointCloud< PointCloudType, PointType > && other)
noexcept

Member Function Documentation

◆ cbegin()

template<typename PointCloudType , typename InnerPointType >
std::vector< InnerPointType >::const_iterator cbegin ( ) const
Returns
Iterator to the first point.

◆ cend()

template<typename PointCloudType , typename InnerPointType >
std::vector< InnerPointType >::const_iterator cend ( ) const
Returns
Iterator to the end of the points (the point after the last point).

◆ GetPoints()

template<typename PointCloudType , typename InnerPointType >
const std::vector< InnerPointType > & GetPoints ( ) const
Returns
Reference to the vector containing the points.

◆ operator!=()

template<typename PointCloudType , typename InnerPointType >
bool operator!= ( const PointCloud< PointCloudType, PointType > & rhs) const

◆ operator=() [1/2]

template<typename PointCloudType , typename InnerPointType >
PointCloud< PointCloudType, InnerPointType > & operator= ( const PointCloud< PointCloudType, PointType > & other)

◆ operator=() [2/2]

template<typename PointCloudType , typename InnerPointType >
PointCloud< PointCloudType, InnerPointType > & operator= ( PointCloud< PointCloudType, PointType > && other)
noexcept

◆ operator==()

template<typename PointCloudType , typename InnerPointType >
bool operator== ( const PointCloud< PointCloudType, PointType > & rhs) const

◆ Transform()

template<typename PointCloudType , typename InnerPointType >
PointCloudType Transform ( const TransformationMatrix3D & matrix) const

Applies the specified transformation matrix to the point cloud.

Parameters
matrixTransformation matrix to apply.
Returns
Transformed point cloud.

◆ TransformToWorkspace()

template<typename PointCloudType , typename InnerPointType >
PointCloudType TransformToWorkspace ( const ExtrinsicParameters & extrinsicParameters) const

Transforms the point cloud to workspace coordinates using the specified extrinsic parameters.

The transformation uses the inverse of the extrinsic matrix to convert from camera to workspace coordinate system.

Parameters
extrinsicParametersExtrinsic parameters from the workspace calibration.
Returns
Transformed point cloud.