![]() |
Zivid C++ API
1.8.1+6967bc1b-1
Defining the Future of 3D Machine Vision
|
A frame captured by a Zivid camera More...
#include <Zivid/Frame.h>
Public Member Functions | |
ZIVID_API_EXPORT | Frame () |
Construct a new frame. More... | |
ZIVID_API_EXPORT | Frame (const std::string &fileName) |
Creates a frame by loading data from a file. More... | |
ZIVID_API_EXPORT | Frame (const std::string &fileName, ComputeDevice computeDevice) |
Creates a frame by loading data from a file on the given compute device. More... | |
ZIVID_API_EXPORT PointCloud | getPointCloud () const |
Copies the point cloud to the CPU and returns it. More... | |
ZIVID_API_EXPORT DeviceCloud | deviceCloud () const |
Returns the point cloud on the Compute device. More... | |
ZIVID_API_EXPORT CameraState | state () const |
Get the camera state data at the time of the frame capture. More... | |
ZIVID_API_EXPORT Settings | settings () const |
Get the settings for the API at the time of the frame capture. More... | |
ZIVID_API_EXPORT FrameInfo | info () const |
Get information collected at the time of the frame capture. More... | |
ZIVID_API_EXPORT void | save (const std::string &fileName) const |
Save the frame to file More... | |
ZIVID_API_EXPORT void | load (const std::string &fileName) |
Load a frame from a Zivid data file. More... | |
ZIVID_API_EXPORT std::string | toString () const |
Get string representation of the frame More... | |
A frame captured by a Zivid camera
Contains a Compute device point cloud and/or a CPU point cloud as well as calibration data, settings and state used by the API at time of the frame capture.
ZIVID_API_EXPORT Zivid::Frame::Frame | ( | ) |
Construct a new frame.
|
explicit |
Creates a frame by loading data from a file.
|
explicit |
Creates a frame by loading data from a file on the given compute device.
ZIVID_API_EXPORT DeviceCloud Zivid::Frame::deviceCloud | ( | ) | const |
Returns the point cloud on the Compute device.
ZIVID_API_EXPORT PointCloud Zivid::Frame::getPointCloud | ( | ) | const |
Copies the point cloud to the CPU and returns it.
ZIVID_API_EXPORT FrameInfo Zivid::Frame::info | ( | ) | const |
Get information collected at the time of the frame capture.
ZIVID_API_EXPORT void Zivid::Frame::load | ( | const std::string & | fileName | ) |
Load a frame from a Zivid data file.
ZIVID_API_EXPORT void Zivid::Frame::save | ( | const std::string & | fileName | ) | const |
Save the frame to file
The file type is determined from the file extension
ZIVID_API_EXPORT Settings Zivid::Frame::settings | ( | ) | const |
Get the settings for the API at the time of the frame capture.
ZIVID_API_EXPORT CameraState Zivid::Frame::state | ( | ) | const |
Get the camera state data at the time of the frame capture.
ZIVID_API_EXPORT std::string Zivid::Frame::toString | ( | ) | const |
Get string representation of the frame