Spinnaker SDK C++
4.2.0.21
 
 

 
Loading...
Searching...
No Matches

Classes

class  PointCloud
 The PointCloud object class. More...
 

Functions

 PointCloud ()
 Create an PointCloud object.
 
 ~PointCloud ()
 Destroy the PointCloud object.
 
PointCloudoperator= (const PointCloud &otherPointCloud)
 Assignment operator.
 
void AddPoint (const Stereo3DPoint point)
 Adds a point to the point cloud.
 
void SavePointCloudAsPly (const std::string &) const
 The function writes the point cloud data to the specified file in PLY format.
 
void LoadPointCloudFromPly (const std::string &filename)
 The function reads the file and parses the data into a vector of 3D points.
 
size_t GetNumPoints () const
 Returns the number of points in the point cloud.
 
void PrintPoints (unsigned int numPointsToPrint) const
 The function prints a number of points from the point cloud to the console.
 
PointCloudData * GetPointCloudData () const
 

Friends

class PointCloudImpl
 

Detailed Description

Function Documentation

◆ AddPoint()

void AddPoint ( const Stereo3DPoint  point)

Adds a point to the point cloud.

Parameters
[in]pointThe point to be added.

◆ GetNumPoints()

size_t GetNumPoints ( ) const

Returns the number of points in the point cloud.

Returns
The number of points in the point cloud.

◆ GetPointCloudData()

PointCloudData * GetPointCloudData ( ) const
protectedvirtual

Implements IPointCloud.

◆ LoadPointCloudFromPly()

void LoadPointCloudFromPly ( const std::string &  filename)

The function reads the file and parses the data into a vector of 3D points.

The data is then stored in the class as a vector of Stereo3DPoint objects.

Loads a point cloud from a PLY file.

Parameters
[in]filenameThe path to the PLY file to be loaded.

◆ operator=()

PointCloud & operator= ( const PointCloud otherPointCloud)

Assignment operator.

◆ PointCloud()

Create an PointCloud object.

◆ PrintPoints()

void PrintPoints ( unsigned int  numPointsToPrint) const

The function prints a number of points from the point cloud to the console.

The number of points to print is specified by the user. The points are printed in the following format: x, y, z, r, g, b, i, j.

Prints a number of points from the point cloud to the console.

Parameters
[in]numPointsToPrintThe number of points to print.

◆ SavePointCloudAsPly()

void SavePointCloudAsPly ( const std::string &  ) const

The function writes the point cloud data to the specified file in PLY format.

The data is written in the order of x, y, z, color (red, green, blue, alpha), image x, image y. The point cloud data is written as a binary file.

Saves the point cloud to a PLY file.

Parameters
[in]filenameThe path to the PLY file to be saved.
Examples
StereoAcquisition.cpp, and StereoAcquisition_QuickSpin.cpp.

◆ ~PointCloud()

~PointCloud ( )

Destroy the PointCloud object.

Friends

◆ PointCloudImpl

friend class PointCloudImpl
friend