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. | |
Stereo3DPoint | GetPoint (const unsigned int index) const |
Returns the Stereo3DPoint at the specified index. | |
size_t | GetNumPoints () const |
Returns the number of points in 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. | |
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 |
|
virtual |
|
virtual |
Returns the number of points in the point cloud.
Implements IPointCloud.
|
virtual |
Returns the Stereo3DPoint at the specified index.
Implements IPointCloud.
|
protectedvirtual |
Implements IPointCloud.
|
virtual |
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. |
Implements IPointCloud.
PointCloud & operator= | ( | const PointCloud & | otherPointCloud | ) |
Assignment operator.
PointCloud | ( | ) |
Create an PointCloud object.
|
virtual |
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. |
Implements IPointCloud.
|
virtual |
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. |
Implements IPointCloud.
~PointCloud | ( | ) |
Destroy the PointCloud object.
|
friend |