Zivid  1.0.1+3607.8a7510c4
Zivid API
Public Member Functions | List of all members
Zivid::PointCloud Class Reference

A point cloud with x,y,z, contrast and color data laid out on a 2D grid. More...

#include <PointCloud.h>

Public Member Functions

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 Pointoperator() (size_t idx)
 Obtain a reference to a point given by a 1D linear index. More...
 
ZIVID_COMMON const Pointoperator() (size_t idx) const
 Obtain a constant reference to a point given by a 1D linear index. More...
 
ZIVID_COMMON Pointoperator() (size_t i, size_t j)
 Obtain a reference to a point given by row and column. More...
 
ZIVID_COMMON const Pointoperator() (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 PointdataPtr ()
 Obtain a pointer to the first point in the point cloud.
 
ZIVID_COMMON const PointdataPtr () 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.
 

Detailed Description

A point cloud with x,y,z, contrast and color data laid out on a 2D grid.

Member Function Documentation

◆ 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
idxLinear 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
idxLinear 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
iRow
jColumn

◆ 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
iRow
jColumn

The documentation for this class was generated from the following file: