38#include "api_global.h"
141 friend class CameraImpl;
143 friend class InternalInterfaces;
145 std::shared_ptr<class Frame2DImpl> _impl;
146 Frame2D(std::shared_ptr<Frame2DImpl>& frameImpl);
#define MMIND_API_EXPORT
Definition api_global.h:48
Represents a 2D container of data.
Definition Array2D.h:17
Represents the 2D and 3D capture results, which can be obtained by calling Camera::capture2DAnd3D....
Definition Frame2DAnd3D.h:101
Represents the 2D capture result, which can be obtained by calling Camera::capture2D....
Definition Frame2D.h:73
Color2DImage getColorImage() const
Gets the image data of the Frame2D with the ColorBGR pixel format. If the 2D camera's color type (acc...
Size imageSize() const
Gets the image size of Frame2D.
ColorTypeOf2DCamera colorType() const
Gets the color type of the 2D camera in the 3D camera.
Frame2D(const Frame2D &other) noexcept
Constructor.
GrayScale2DImage getGrayScaleImage() const
Gets image data of the Frame2D with the Gray pixel format. If the 2D camera's color type (according t...
Frame2D & operator=(const Frame2D &other) noexcept
Copy assignment.
uint64_t frameId() const
The ID of the Frame2D frame.
void clear()
Clears the data in Frame2D and releases the associated resources.
bool isEmpty() const
Judges whether Frame2D is empty.
ColorTypeOf2DCamera
Defines the color type of the 2D camera in the 3D camera.
Definition CameraProperties.h:155
Represents a pixel in Color2DImage with blue, green, and red channel information.
Definition Frame2D.h:58
uint8_t g
Green channel.
Definition Frame2D.h:60
uint8_t b
Blue channel.
Definition Frame2D.h:59
uint8_t r
Red channel.
Definition Frame2D.h:61
Represents a pixel in GrayScale2DImage with grayscale channel information.
Definition Frame2D.h:50
uint8_t gray
Grayscale channel.
Definition Frame2D.h:51
Describes a two-dimensional size with a width and a height.
Definition CommonTypes.h:40