Zivid
1.0.0+3593.8aa835e3
Zivid API
|
Point cloud on the Compute device. More...
#include <DeviceCloud.h>
Public Member Functions | |
ZIVID_COMMON_COMPUTE | DeviceCloud () |
Create an empty device cloud. | |
ZIVID_COMMON_COMPUTE | DeviceCloud (const PointCloud &cloud) |
Create a device cloud from a point cloud. | |
ZIVID_COMMON_COMPUTE | DeviceCloud (const PointCloud &cloud, ComputeDevice device) |
Create a device cloud from a point cloud on a given Compute device. | |
ZIVID_COMMON_COMPUTE bool | isEmpty () const |
Check if the device cloud is empty. | |
ZIVID_COMMON_COMPUTE DeviceCloud | clone () const |
Clone the device cloud. | |
ZIVID_COMMON_COMPUTE PointCloud | copyToCPU () |
Copy to the device cloud to a CPU point cloud. | |
ZIVID_COMMON_COMPUTE void | lock () |
Lock the point cloud. More... | |
ZIVID_COMMON_COMPUTE size_t | rows () const |
Get number of rows in point cloud. | |
ZIVID_COMMON_COMPUTE size_t | cols () const |
Get number of columns in point cloud. | |
ZIVID_COMMON_COMPUTE void | unlock () |
Unlock the point cloud. | |
ZIVID_COMMON_COMPUTE bool | tryLock () |
Check if a lock can be obtained for the point cloud. | |
ZIVID_COMMON_COMPUTE bool | tryLockFor (const std::chrono::milliseconds &duration) |
Check if a lock can be obtained for the point cloud (with a specified timeout) | |
Point cloud on the Compute device.
ZIVID_COMMON_COMPUTE void Zivid::DeviceCloud::lock | ( | ) |
Lock the point cloud.
The point cloud should be locked before elements are manipulated or accessed directly