ifm3d
|
#include <ifm3d/fg/frame.h>
Public Types | |
using | Ptr = std::shared_ptr< Frame > |
Public Member Functions | |
Frame (const BufferDataListMap &images, const std::vector< TimePointT > timestamps, uint64_t frame_count) | |
Frame (const Frame &t) | |
Frame & | operator= (const Frame &t) |
Frame (Frame &&t) | |
Frame & | operator= (Frame &&t) |
std::vector< TimePointT > | TimeStamps () |
Get the timestamps of the frame. More... | |
bool | HasBuffer (buffer_id id) |
Check if a image with the given id is available in this frame. More... | |
Buffer & | GetBuffer (buffer_id id, std::optional< size_t > index=std::nullopt) |
Get the image with the given id. More... | |
size_t | GetBufferCount (buffer_id id) |
Get the total number of image with the given id. | |
uint32_t | FrameCount () |
Get the frame count according to algorithm output. | |
std::vector< buffer_id > | GetBuffers () |
Get the list of available buffers. More... | |
decltype(std::declval< std::map< buffer_id, BufferList >>().begin()) | begin () noexcept |
decltype(std::declval< const std::map< buffer_id, BufferList >>().begin()) | begin () const noexcept |
decltype(std::declval< std::map< buffer_id, BufferList >>().end()) | end () noexcept |
decltype(std::declval< const std::map< buffer_id, BufferList >>().end()) | end () const noexcept |
Represent a frame of data received from the the device.
Get the image with the given id.
id | the id of the image to get |
index | of the image |
std::out_of_range | if no image with the give id exists |
std::vector<buffer_id> ifm3d::Frame::GetBuffers | ( | ) |
Get the list of available buffers.
id | the id of the image to get |
bool ifm3d::Frame::HasBuffer | ( | buffer_id | id | ) |
Check if a image with the given id is available in this frame.
id | the id of the image |
std::vector<TimePointT> ifm3d::Frame::TimeStamps | ( | ) |
Get the timestamps of the frame.