Classes | |
class | PointCloud |
The PointCloud object class. More... | |
Functions | |
PointCloud () | |
Create an PointCloud object. | |
~PointCloud () | |
Destroy the PointCloud object. | |
PointCloud & | operator= (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 |
void AddPoint | ( | const Stereo3DPoint | point | ) |
Adds a point to the point cloud.
[in] | point | The point to be added. |
size_t GetNumPoints | ( | ) | const |
Returns the number of points in the point cloud.
|
protectedvirtual |
Implements IPointCloud.
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.
[in] | filename | The path to the PLY file to be loaded. |
PointCloud & operator= | ( | const PointCloud & | otherPointCloud | ) |
Assignment operator.
PointCloud | ( | ) |
Create an PointCloud object.
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.
[in] | numPointsToPrint | The number of points to print. |
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.
[in] | filename | The path to the PLY file to be saved. |
~PointCloud | ( | ) |
Destroy the PointCloud object.
|
friend |