38#include "api_global.h"
39#include "CameraProperties.h"
64using GrayScale2DImage = Array2D<Gray>;
65using Color2DImage = Array2D<ColorBGR>;
136 friend class CameraImpl;
139 std::shared_ptr<class Frame2DImpl> _impl;
140 Frame2D(std::shared_ptr<Frame2DImpl>& frameImpl);
Represents a 2D container of data.
Represents the 2D and 3D scanning result, which can be obtained by calling Camera::capture2DAnd3D or ...
Represents the 2D scanning result, which can be obtained by calling Camera::capture2D....
ColorTypeOf2DCamera colorType() const
Gets the color type of the 2D camera mounted on the device.
Frame2D(const Frame2D &other) noexcept
Constructor.
Color2DImage getColorImage() const
Gets the image data of the Frame2D with ColorBGR pixel format of each point. If the camera's color ty...
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 related resources.
GrayScale2DImage getGrayScaleImage() const
Gets image data of the Frame2D with Gray pixel format of each point. If the camera's color type (acco...
Size imageSize() const
Gets the image size information of Frame2D.
The pixel element struct in Color2DImage with blue, green, and red information.
The pixel element struct in GrayScale2DImage with gray information.
uint8_t gray
Gray channel.
Describes a size with a width and a height.