#include <ImgFrame.hpp>
Classes | |
struct | dependent_false |
Public Types | |
using | CameraSettings = RawImgFrame::CameraSettings |
using | Specs = RawImgFrame::Specs |
using | Type = RawImgFrame::Type |
Public Member Functions | |
unsigned int | getCategory () const |
int | getColorTemperature () const |
template<typename... T> | |
void | getCvFrame (T...) |
std::chrono::microseconds | getExposureTime () const |
template<typename... T> | |
void | getFrame (T...) |
unsigned int | getHeight () const |
unsigned int | getInstanceNum () const |
int | getLensPosition () const |
float | getLensPositionRaw () const |
int | getSensitivity () const |
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | getTimestamp () const |
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | getTimestamp (CameraExposureOffset offset) const |
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | getTimestampDevice () const |
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | getTimestampDevice (CameraExposureOffset offset) const |
Type | getType () const |
unsigned int | getWidth () const |
ImgFrame () | |
ImgFrame (std::shared_ptr< RawImgFrame > ptr) | |
ImgFrame & | setCategory (unsigned int category) |
template<typename... T> | |
ImgFrame & | setFrame (T...) |
ImgFrame & | setHeight (unsigned int height) |
ImgFrame & | setInstanceNum (unsigned int instance) |
ImgFrame & | setSequenceNum (int64_t seq) |
ImgFrame & | setSize (std::tuple< unsigned int, unsigned int > size) |
ImgFrame & | setSize (unsigned int width, unsigned int height) |
ImgFrame & | setTimestamp (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp) |
ImgFrame & | setTimestampDevice (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp) |
ImgFrame & | setType (Type type) |
ImgFrame & | setWidth (unsigned int width) |
virtual | ~ImgFrame ()=default |
![]() | |
Buffer () | |
Creates Buffer message. More... | |
Buffer (std::shared_ptr< dai::RawBuffer > ptr) | |
std::vector< std::uint8_t > & | getData () const |
Get non-owning reference to internal buffer. More... | |
int64_t | getSequenceNum () const |
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | getTimestamp () const |
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | getTimestampDevice () const |
void | setData (const std::vector< std::uint8_t > &data) |
void | setData (std::vector< std::uint8_t > &&data) |
Buffer & | setSequenceNum (int64_t sequenceNum) |
Buffer & | setTimestamp (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp) |
Buffer & | setTimestampDevice (std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > timestamp) |
virtual | ~Buffer ()=default |
![]() | |
ADatatype (std::shared_ptr< RawBuffer > r) | |
std::shared_ptr< RawBuffer > | getRaw () const |
virtual | ~ADatatype ()=default |
Private Member Functions | |
std::shared_ptr< RawBuffer > | serialize () const override |
Private Attributes | |
RawImgFrame & | img |
Additional Inherited Members | |
![]() | |
std::shared_ptr< RawBuffer > | raw |
ImgFrame message. Carries image data and metadata.
Definition at line 25 of file ImgFrame.hpp.
Definition at line 33 of file ImgFrame.hpp.
Definition at line 32 of file ImgFrame.hpp.
using dai::ImgFrame::Type = RawImgFrame::Type |
Definition at line 31 of file ImgFrame.hpp.
dai::ImgFrame::ImgFrame | ( | ) |
Construct ImgFrame message. Timestamp is set to now
Definition at line 11 of file pipeline/datatype/ImgFrame.cpp.
|
explicit |
Definition at line 15 of file pipeline/datatype/ImgFrame.cpp.
|
virtualdefault |
unsigned int dai::ImgFrame::getCategory | ( | ) | const |
Retrieves image category
Definition at line 50 of file pipeline/datatype/ImgFrame.cpp.
int dai::ImgFrame::getColorTemperature | ( | ) | const |
Retrieves white-balance color temperature of the light source, in kelvins
Definition at line 68 of file pipeline/datatype/ImgFrame.cpp.
|
inline |
Definition at line 222 of file ImgFrame.hpp.
std::chrono::microseconds dai::ImgFrame::getExposureTime | ( | ) | const |
Retrieves exposure time
Definition at line 62 of file pipeline/datatype/ImgFrame.cpp.
|
inline |
Definition at line 218 of file ImgFrame.hpp.
unsigned int dai::ImgFrame::getHeight | ( | ) | const |
Retrieves image height in pixels
Definition at line 56 of file pipeline/datatype/ImgFrame.cpp.
unsigned int dai::ImgFrame::getInstanceNum | ( | ) | const |
Retrieves instance number
Definition at line 47 of file pipeline/datatype/ImgFrame.cpp.
int dai::ImgFrame::getLensPosition | ( | ) | const |
Retrieves lens position, range 0..255. Returns -1 if not available
Definition at line 71 of file pipeline/datatype/ImgFrame.cpp.
float dai::ImgFrame::getLensPositionRaw | ( | ) | const |
Retrieves lens position, range 0.0f..1.0f. Returns -1 if not available
Definition at line 75 of file pipeline/datatype/ImgFrame.cpp.
int dai::ImgFrame::getSensitivity | ( | ) | const |
Retrieves sensitivity, as an ISO value
Definition at line 65 of file pipeline/datatype/ImgFrame.cpp.
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > dai::Buffer::getTimestamp |
Retrieves timestamp related to dai::Clock::now()
Definition at line 26 of file Buffer.cpp.
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > dai::ImgFrame::getTimestamp | ( | CameraExposureOffset | offset | ) | const |
Retrieves image timestamp (at the specified offset of exposure) related to dai::Clock::now()
Definition at line 20 of file pipeline/datatype/ImgFrame.cpp.
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > dai::Buffer::getTimestampDevice |
Retrieves timestamp directly captured from device's monotonic clock, not synchronized to host time. Used mostly for debugging
Definition at line 30 of file Buffer.cpp.
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > dai::ImgFrame::getTimestampDevice | ( | CameraExposureOffset | offset | ) | const |
Retrieves image timestamp (at the specified offset of exposure) directly captured from device's monotonic clock, not synchronized to host time. Used when monotonicity is required.
Definition at line 33 of file pipeline/datatype/ImgFrame.cpp.
RawImgFrame::Type dai::ImgFrame::getType | ( | ) | const |
Retrieves image type
Definition at line 59 of file pipeline/datatype/ImgFrame.cpp.
unsigned int dai::ImgFrame::getWidth | ( | ) | const |
Retrieves image width in pixels
Definition at line 53 of file pipeline/datatype/ImgFrame.cpp.
|
overrideprivatevirtual |
Reimplemented from dai::Buffer.
Definition at line 7 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setCategory | ( | unsigned int | category | ) |
category | Image category |
Definition at line 92 of file pipeline/datatype/ImgFrame.cpp.
|
inline |
Definition at line 213 of file ImgFrame.hpp.
ImgFrame & dai::ImgFrame::setHeight | ( | unsigned int | height | ) |
Specifies frame height
height | frame height |
Definition at line 105 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setInstanceNum | ( | unsigned int | instance | ) |
Instance number relates to the origin of the frame (which camera)
instance | Instance number |
Definition at line 88 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setSequenceNum | ( | int64_t | seq | ) |
Specifies sequence number
seq | Sequence number |
Definition at line 96 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setSize | ( | std::tuple< unsigned int, unsigned int > | size | ) |
Specifies frame size
size | frame size |
Definition at line 114 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setSize | ( | unsigned int | width, |
unsigned int | height | ||
) |
Specifies frame size
height | frame height |
width | frame width |
Definition at line 109 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setTimestamp | ( | std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | timestamp | ) |
Retrieves image timestamp related to dai::Clock::now()
Definition at line 80 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setTimestampDevice | ( | std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > | timestamp | ) |
Sets image timestamp related to dai::Clock::now()
Definition at line 84 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setType | ( | RawImgFrame::Type | type | ) |
Specifies frame type, RGB, BGR, ...
type | Type of image |
Definition at line 118 of file pipeline/datatype/ImgFrame.cpp.
ImgFrame & dai::ImgFrame::setWidth | ( | unsigned int | width | ) |
Specifies frame width
width | frame width |
Definition at line 99 of file pipeline/datatype/ImgFrame.cpp.
|
private |
Definition at line 27 of file ImgFrame.hpp.