![]() |
Zivid C++ API
1.8.1+6967bc1b-1
Defining the Future of 3D Machine Vision
|
A point cloud with x,y,z, contrast and color data laid out on a 2D grid. More...
#include <Zivid/PointCloud.h>
Public Member Functions | |
ZIVID_API_EXPORT | PointCloud () |
Construct an empty point cloud More... | |
ZIVID_API_EXPORT | PointCloud (size_t rows, size_t cols) |
Allocate an organized point cloud with a given number of rows and columns More... | |
ZIVID_API_EXPORT bool | isEmpty () const |
Return whether point cloud is empty More... | |
ZIVID_API_EXPORT size_t | width () const |
Return width (number of columns) of point cloud More... | |
ZIVID_API_EXPORT size_t | height () const |
Return height (number of rows) of point cloud More... | |
ZIVID_API_EXPORT size_t | size () const |
Return number of points in point cloud More... | |
ZIVID_API_EXPORT Point & | operator() (size_t idx) |
Obtain a reference to a point given by a 1D linear index More... | |
const ZIVID_API_EXPORT Point & | operator() (size_t idx) const |
Obtain a constant reference to a point given by a 1D linear index. More... | |
ZIVID_API_EXPORT Point & | operator() (size_t i, size_t j) |
Obtain a reference to a point given by row and column More... | |
const ZIVID_API_EXPORT Point & | operator() (size_t i, size_t j) const |
Obtain a constant reference to a point given by row and column More... | |
ZIVID_API_EXPORT void | resize (size_t rows, size_t cols) |
Resize the point cloud to the given number of rows and columns More... | |
ZIVID_API_EXPORT Point * | dataPtr () |
Obtain a pointer to the first point in the point cloud More... | |
const ZIVID_API_EXPORT Point * | dataPtr () const |
Obtain a const pointer to the first point in the point cloud More... | |
ZIVID_API_EXPORT PointCloud | clone () |
Make a deep copy of the point cloud More... | |
ZIVID_API_EXPORT std::string | toString () const |
Get string representation of the point cloud More... | |
A point cloud with x,y,z, contrast and color data laid out on a 2D grid.
ZIVID_API_EXPORT Zivid::PointCloud::PointCloud | ( | ) |
Construct an empty point cloud
ZIVID_API_EXPORT Zivid::PointCloud::PointCloud | ( | size_t | rows, |
size_t | cols | ||
) |
Allocate an organized point cloud with a given number of rows and columns
ZIVID_API_EXPORT PointCloud Zivid::PointCloud::clone | ( | ) |
Make a deep copy of the point cloud
ZIVID_API_EXPORT Point* Zivid::PointCloud::dataPtr | ( | ) |
Obtain a pointer to the first point in the point cloud
const ZIVID_API_EXPORT Point* Zivid::PointCloud::dataPtr | ( | ) | const |
Obtain a const pointer to the first point in the point cloud
ZIVID_API_EXPORT size_t Zivid::PointCloud::height | ( | ) | const |
Return height (number of rows) of point cloud
ZIVID_API_EXPORT bool Zivid::PointCloud::isEmpty | ( | ) | const |
Return whether point cloud is empty
ZIVID_API_EXPORT Point& Zivid::PointCloud::operator() | ( | size_t | i, |
size_t | j | ||
) |
Obtain a reference to a point given by row and column
i | Row |
j | Column |
const ZIVID_API_EXPORT Point& Zivid::PointCloud::operator() | ( | size_t | i, |
size_t | j | ||
) | const |
Obtain a constant reference to a point given by row and column
i | Row |
j | Column |
ZIVID_API_EXPORT Point& Zivid::PointCloud::operator() | ( | size_t | idx | ) |
Obtain a reference to a point given by a 1D linear index
idx | Linear 1D index (from 0 to number of points) |
const ZIVID_API_EXPORT Point& Zivid::PointCloud::operator() | ( | size_t | idx | ) | const |
Obtain a constant reference to a point given by a 1D linear index.
idx | Linear 1D index (from 0 to number of points) |
ZIVID_API_EXPORT void Zivid::PointCloud::resize | ( | size_t | rows, |
size_t | cols | ||
) |
Resize the point cloud to the given number of rows and columns
ZIVID_API_EXPORT size_t Zivid::PointCloud::size | ( | ) | const |
Return number of points in point cloud
ZIVID_API_EXPORT std::string Zivid::PointCloud::toString | ( | ) | const |
Get string representation of the point cloud
ZIVID_API_EXPORT size_t Zivid::PointCloud::width | ( | ) | const |
Return width (number of columns) of point cloud