IDS peak ICV v1.2.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

Definition at line 106 of file peak_icv_type_traits.hpp.

Member Typedef Documentation

◆ PointType

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

Definition at line 66 of file peak_icv_point_cloud.hpp.

Constructor & Destructor Documentation

◆ ~PointCloud()

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

Definition at line 142 of file peak_icv_point_cloud.hpp.

◆ PointCloud() [1/2]

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

Definition at line 156 of file peak_icv_point_cloud.hpp.

◆ PointCloud() [2/2]

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

Definition at line 168 of file peak_icv_point_cloud.hpp.

Member Function Documentation

◆ cbegin()

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

Definition at line 305 of file peak_icv_point_cloud.hpp.

◆ 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).

Definition at line 311 of file peak_icv_point_cloud.hpp.

◆ GetPoints()

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

Definition at line 245 of file peak_icv_point_cloud.hpp.

◆ operator!=()

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

Definition at line 239 of file peak_icv_point_cloud.hpp.

◆ operator=() [1/2]

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

Definition at line 178 of file peak_icv_point_cloud.hpp.

◆ operator=() [2/2]

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

Definition at line 199 of file peak_icv_point_cloud.hpp.

◆ operator==()

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

Definition at line 220 of file peak_icv_point_cloud.hpp.

◆ 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.

Definition at line 277 of file peak_icv_point_cloud.hpp.

◆ 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.

Definition at line 291 of file peak_icv_point_cloud.hpp.