IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
PointCloudXYZ Class Reference

#include <peak_icv/types/peak_icv_point_cloud_xyz.hpp>

Inheritance diagram for PointCloudXYZ:

Public Types

using PointType
 

Public Member Functions

 PointCloudXYZ (const XYZImage &image)
 Constructs a point cloud from the specified XYZ image.
 
 PointCloudXYZ (const UndistortedImage &undistortedDepthMap)
 Constructs a point cloud from the specified undistorted depth map.
 
 PointCloudXYZ (const std::string &filePath)
 Constructs a point cloud by loading it from the specified file.
 
 PointCloudXYZ (const std::vector< PointXYZ > &points)
 Constructs a point cloud from the specified list of points.
 
bool operator== (const PointCloud &rhs) const
 
bool operator!= (const PointCloud &rhs) const
 
const std::vector< PointXYZ > & GetPoints () const
 
PointCloudXYZ Transform (const TransformationMatrix3D &matrix) const
 Applies the specified transformation matrix to the point cloud.
 
PointCloudXYZ TransformToWorkspace (const ExtrinsicParameters &extrinsicParameters) const
 Transforms the point cloud to workspace coordinates using the specified extrinsic parameters.
 
std::vector< PointXYZ >::const_iterator cbegin () const
 
std::vector< PointXYZ >::const_iterator cend () const
 

Detailed Description

Represents a point cloud consisting of points with x, y, and z coordinates.

Since
ids_peak_icv 1.1

Definition at line 41 of file peak_icv_point_cloud_xyz.hpp.

Member Typedef Documentation

◆ PointType

using PointXYZ
inherited

Definition at line 66 of file peak_icv_point_cloud.hpp.

Constructor & Destructor Documentation

◆ PointCloudXYZ() [1/4]

PointCloudXYZ ( const XYZImage & image)
inlineexplicit

Constructs a point cloud from the specified XYZ image.

Parameters
imageImage containing x, y, and z coordinates per pixel.
Exceptions
NotSupportedExceptionThe image format is not supported.
Since
ids_peak_icv 1.1

Definition at line 117 of file peak_icv_point_cloud_xyz.hpp.

◆ PointCloudXYZ() [2/4]

PointCloudXYZ ( const UndistortedImage & undistortedDepthMap)
inlineexplicit

Constructs a point cloud from the specified undistorted depth map.

The intrinsic parameters must be embedded in the image.

The depth values must represent distances measured in a spherical coordinate system centered at the camera origin. Each pixel must encode the radial distance to a 3D point.

Use the Undistortion class to convert a distorted depth map into an UndistortedImage.

Parameters
undistortedDepthMapImage containing distance values per pixel, along with intrinsic camera parameters.
Exceptions
NotSupportedExceptionThe image format is not supported.
Since
ids_peak_icv 1.1

Definition at line 121 of file peak_icv_point_cloud_xyz.hpp.

◆ PointCloudXYZ() [3/4]

PointCloudXYZ ( const std::string & filePath)
inlineexplicit

Constructs a point cloud by loading it from the specified file.

The file format is determined by the specified file extension of the file name.

Supported file formats (with required file extensions):

  • PLY (.ply) – Polygon File Format
Parameters
filePathPath to the point cloud file, encoded in UTF-8.
Exceptions
IOExceptionThe specified filePath is invalid or lacks read permissions, or the file is in an unsupported format or contains invalid data.
Since
ids_peak_icv 1.1

Definition at line 125 of file peak_icv_point_cloud_xyz.hpp.

◆ PointCloudXYZ() [4/4]

PointCloudXYZ ( const std::vector< PointXYZ > & points)
inlineexplicit

Constructs a point cloud from the specified list of points.

Parameters
pointsVector of 3D points.
Since
ids_peak_icv 1.1

Definition at line 129 of file peak_icv_point_cloud_xyz.hpp.

Member Function Documentation

◆ cbegin()

std::vector< InnerPointType >::const_iterator cbegin ( ) const
inherited
Returns
Iterator to the first point.

Definition at line 112 of file peak_icv_point_cloud.hpp.

◆ cend()

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

Definition at line 117 of file peak_icv_point_cloud.hpp.

◆ GetPoints()

const std::vector< InnerPointType > & GetPoints ( ) const
inherited
Returns
Reference to the vector containing the points.

Definition at line 85 of file peak_icv_point_cloud.hpp.

◆ operator!=()

bool operator!= ( const PointCloud< PointCloudXYZ, PointXYZ > & rhs) const
inherited

Definition at line 80 of file peak_icv_point_cloud.hpp.

◆ operator==()

bool operator== ( const PointCloud< PointCloudXYZ, PointXYZ > & rhs) const
inherited

Definition at line 78 of file peak_icv_point_cloud.hpp.

◆ Transform()

PointCloudXYZ Transform ( const TransformationMatrix3D & matrix) const
inherited

Applies the specified transformation matrix to the point cloud.

Parameters
matrixTransformation matrix to apply.
Returns
Transformed point cloud.

Definition at line 94 of file peak_icv_point_cloud.hpp.

◆ TransformToWorkspace()

PointCloudXYZ TransformToWorkspace ( const ExtrinsicParameters & extrinsicParameters) const
inherited

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 107 of file peak_icv_point_cloud.hpp.