A point cloud with x,y,z, contrast and color data laid out on a 2D grid.
More...
#include <PointCloud.h>
|
ZIVID_COMMON | PointCloud () |
| Construct an empty point cloud.
|
|
ZIVID_COMMON | PointCloud (size_t rows, size_t cols) |
| Allocate an organized point cloud with a given number of rows and columns.
|
|
ZIVID_COMMON bool | isEmpty () const |
| Return whether point cloud is empty.
|
|
ZIVID_COMMON size_t | width () const |
| Return width (number of columns) of point cloud.
|
|
ZIVID_COMMON size_t | height () const |
| Return height (number of rows) of point cloud.
|
|
ZIVID_COMMON size_t | size () const |
| Return number of points in point cloud.
|
|
ZIVID_COMMON Point & | operator() (size_t idx) |
| Obtain a reference to a point given by a 1D linear index. More...
|
|
ZIVID_COMMON const Point & | operator() (size_t idx) const |
| Obtain a constant reference to a point given by a 1D linear index. More...
|
|
ZIVID_COMMON Point & | operator() (size_t i, size_t j) |
| Obtain a reference to a point given by row and column. More...
|
|
ZIVID_COMMON const Point & | operator() (size_t i, size_t j) const |
| Obtain a constant reference to a point given by row and column. More...
|
|
ZIVID_COMMON void | resize (size_t rows, size_t cols) |
| Resize the point cloud to the given number of rows and columns.
|
|
ZIVID_COMMON Point * | dataPtr () |
| Obtain a pointer to the first point in the point cloud.
|
|
ZIVID_COMMON const Point * | dataPtr () const |
| Obtain a const pointer to the first point in the point cloud.
|
|
ZIVID_COMMON PointCloud | clone () |
| Make a deep copy of the point cloud.
|
|
A point cloud with x,y,z, contrast and color data laid out on a 2D grid.
◆ operator()() [1/4]
ZIVID_COMMON Point& Zivid::PointCloud::operator() |
( |
size_t |
idx | ) |
|
Obtain a reference to a point given by a 1D linear index.
- Parameters
-
idx | Linear 1D index (from 0 to number of points) |
◆ operator()() [2/4]
ZIVID_COMMON const Point& Zivid::PointCloud::operator() |
( |
size_t |
idx | ) |
const |
Obtain a constant reference to a point given by a 1D linear index.
- Parameters
-
idx | Linear 1D index (from 0 to number of points) |
◆ operator()() [3/4]
ZIVID_COMMON Point& Zivid::PointCloud::operator() |
( |
size_t |
i, |
|
|
size_t |
j |
|
) |
| |
Obtain a reference to a point given by row and column.
- Parameters
-
◆ operator()() [4/4]
ZIVID_COMMON const Point& Zivid::PointCloud::operator() |
( |
size_t |
i, |
|
|
size_t |
j |
|
) |
| const |
Obtain a constant reference to a point given by row and column.
- Parameters
-
The documentation for this class was generated from the following file:
- C:/vagrant/source/cpp/build/install/include/Zivid/PointCloud.h