![]() |
LibMultiSense
LibMultiSense Documentation
|
Represents a single image plus metadata. More...
#include <MultiSenseTypes.hh>
Public Types | |
enum | PixelFormat : uint8_t { PixelFormat::UNKNOWN, PixelFormat::MONO8, PixelFormat::BGR8, PixelFormat::MONO16, PixelFormat::FLOAT32, PixelFormat::JPEG, PixelFormat::H264 } |
Pixel formats. More... | |
Public Member Functions | |
template<typename T > | |
std::optional< T > | at (int w, int h) const |
Get a pixel at a certain width/height location in the image. More... | |
Public Attributes | |
std::shared_ptr< const std::vector< uint8_t > > | raw_data = nullptr |
A pointer to the raw image data sent from the camera. More... | |
int64_t | image_data_offset = 0 |
An offset into the raw_data pointer where the image data starts. More... | |
size_t | image_data_length = 0 |
The length of the image data after the image_data_offset has been applied. More... | |
PixelFormat | format = PixelFormat::UNKNOWN |
The format of the image data stored in the raw_data stored in the raw_data buffer. More... | |
int | width = -1 |
Width of the image in pixels. More... | |
int | height = -1 |
Height of the image in pixels. More... | |
TimeT | camera_timestamp {} |
The timestamp associated with the image based on the camera's clock. More... | |
TimeT | ptp_timestamp {} |
The timestamp associated with the image based using the camera's clock which is potentially PTP synchronized with a remote PTP master. More... | |
DataSource | source = DataSource::UNKNOWN |
The camera data source which this image corresponds to. More... | |
CameraCalibration | calibration {} |
The scaled calibration associated with the image. More... | |
Represents a single image plus metadata.
Definition at line 187 of file MultiSenseTypes.hh.
|
strong |
Pixel formats.
Enumerator | |
---|---|
UNKNOWN | |
MONO8 | |
BGR8 | |
MONO16 | |
FLOAT32 | |
JPEG | |
H264 |
Definition at line 192 of file MultiSenseTypes.hh.
|
inline |
Get a pixel at a certain width/height location in the image.
NOTE: This check is slower since it checks to make sure the request is safe. It should not be called repeatedly at high frequency
Definition at line 261 of file MultiSenseTypes.hh.
CameraCalibration multisense::Image::calibration {} |
The scaled calibration associated with the image.
Definition at line 253 of file MultiSenseTypes.hh.
TimeT multisense::Image::camera_timestamp {} |
The timestamp associated with the image based on the camera's clock.
Starts at 0 on boot
Definition at line 237 of file MultiSenseTypes.hh.
PixelFormat multisense::Image::format = PixelFormat::UNKNOWN |
The format of the image data stored in the raw_data stored in the raw_data buffer.
Definition at line 221 of file MultiSenseTypes.hh.
int multisense::Image::height = -1 |
Height of the image in pixels.
Definition at line 231 of file MultiSenseTypes.hh.
size_t multisense::Image::image_data_length = 0 |
The length of the image data after the image_data_offset has been applied.
Definition at line 216 of file MultiSenseTypes.hh.
int64_t multisense::Image::image_data_offset = 0 |
An offset into the raw_data pointer where the image data starts.
Definition at line 211 of file MultiSenseTypes.hh.
TimeT multisense::Image::ptp_timestamp {} |
The timestamp associated with the image based using the camera's clock which is potentially PTP synchronized with a remote PTP master.
Definition at line 243 of file MultiSenseTypes.hh.
std::shared_ptr<const std::vector<uint8_t> > multisense::Image::raw_data = nullptr |
A pointer to the raw image data sent from the camera.
Definition at line 206 of file MultiSenseTypes.hh.
DataSource multisense::Image::source = DataSource::UNKNOWN |
The camera data source which this image corresponds to.
Definition at line 248 of file MultiSenseTypes.hh.
int multisense::Image::width = -1 |
Width of the image in pixels.
Definition at line 226 of file MultiSenseTypes.hh.