Class CameraFrame

Inheritance Relationships

Base Type

Class Documentation

class CameraFrame : public ouster::sdk::core::TypedFrame<CameraInfo>

Data structure for camera image frames and associated metadata.

Stores image fields (for example RANGE) and timing/pose headers. Inherits common field, timestamp, and pose accessors from Frame.

Public Functions

CameraFrame()

The default constructor creates an invalid 0 x 0 frame with a single timestamp and identity body-to-world pose.

explicit CameraFrame(std::shared_ptr<CameraInfo> info)

Initialize camera frame with camera info.

Parameters:

info[in] a shared_ptr to the CameraInfo object

~CameraFrame() override = default

Camera frame destructor.

CameraFrame(const CameraFrame&) = default

Copy constructor.

CameraFrame &operator=(const CameraFrame&) = default

Copy assignment operator.

CameraFrame(CameraFrame&&) = default

Move constructor.

CameraFrame &operator=(CameraFrame&&) = default

Move assignment operator.

virtual std::shared_ptr<Frame> clone() const override

Deep-copy this camera frame as a base Frame pointer.

Returns:

a shared pointer to a newly allocated CameraFrame copy.

virtual std::string to_string() const override

Get a string representation of this camera frame.

Returns:

the string representation of the camera frame.