38#include "api_global.h"
39#include "CameraProperties.h"
64using GrayScale2DImage = Array2D<Gray>;
65using Color2DImage = Array2D<ColorBGR>;
141 friend class CameraImpl;
143 friend class InternalInterfaces;
145 std::shared_ptr<class Frame2DImpl> _impl;
Represents a 2D container of data.
Represents the 2D and 3D capture results, which can be obtained by calling Camera::capture2DAnd3D....
Represents the 2D capture result, which can be obtained by calling Camera::capture2D....
ColorTypeOf2DCamera colorType() const
Gets the color type of the 2D camera in the 3D camera.
uint64_t frameId() const
The ID of the Frame2D frame.
Frame2D(const Frame2D &other) noexcept
Constructor.
Color2DImage getColorImage() const
Gets the image data of the Frame2D with the ColorBGR pixel format. If the 2D camera's color type (acc...
bool isEmpty() const
Judges whether Frame2D is empty.
Frame2D & operator=(const Frame2D &other) noexcept
Copy assignment.
void clear()
Clears the data in Frame2D and releases the associated resources.
GrayScale2DImage getGrayScaleImage() const
Gets image data of the Frame2D with the Gray pixel format. If the 2D camera's color type (according t...
Size imageSize() const
Gets the image size of Frame2D.
Represents a pixel in Color2DImage with blue, green, and red channel information.
Represents a pixel in GrayScale2DImage with grayscale channel information.
uint8_t gray
Grayscale channel.
Describes a two-dimensional size with a width and a height.