38#include "api_global.h"
179 bool isOrganized =
false)
const;
200 const std::string& fileName,
201 bool isOrganized =
false)
const;
224 const std::string& fileName,
bool isOrganized =
false,
249 const std::string& fileName,
bool isOrganized =
false,
253 std::shared_ptr<class Frame2DAnd3DImpl> _impl;
254 friend class CameraImpl;
255 friend class InternalInterfaces;
#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
TexturedPointCloud getTexturedPointCloud() const
Gets the 2D and 3D data aligned pixel-to-pixel with the PointXYZBGR data format. Each point in Textur...
static ErrorStatus savePointCloud(const TexturedPointCloud &pointCloud, FileFormat fileFormat, const std::string &fileName, bool isOrganized=false, CoordinateUnit pointCloudUnit=CoordinateUnit::Millimeter)
Saves the textured point cloud to a file of the input file format and filename. Each point contains x...
ErrorStatus saveTexturedPointCloudWithNormals(FileFormat fileFormat, const std::string &fileName, bool isOrganized=false) const
Saves the textured point cloud to a file of the input file format and filename. Each point contains x...
Frame2DAnd3D(const Frame2DAnd3D &other) noexcept
Copy constructor.
~Frame2DAnd3D()
Destructor.
Frame2DAnd3D & operator=(const Frame2DAnd3D &other) noexcept
Copy assignment.
ErrorStatus saveTexturedPointCloud(FileFormat fileFormat, const std::string &fileName, bool isOrganized=false) const
Saves the textured point cloud to a file of the input file format and filename. Each point contains x...
TexturedPointCloudWithNormals getTexturedPointCloudWithNormals() const
Gets the pixel-aligned 2D and 3D data with the PointXYZBGRWithNormals pixel data format....
Frame2DAnd3D()
Constructor.
void clear()
Clears the data in Frame2DAnd3D and releases the associated resources.
Frame3D frame3D() const
Gets the Frame3D data part.
static ErrorStatus savePointCloudWithNormals(const TexturedPointCloudWithNormals &pointCloud, FileFormat fileFormat, const std::string &fileName, bool isOrganized=false, CoordinateUnit pointCloudUnit=CoordinateUnit::Millimeter)
Saves the textured point cloud to a file of the input file format and filename. Each point contains x...
Frame2D frame2D() const
Gets the Frame2D data part.
Represents the 2D capture result, which can be obtained by calling Camera::capture2D....
Definition Frame2D.h:73
Represents the 3D capture result, which can be obtained by calling Camera::capture3D....
Definition Frame3D.h:91
FileFormat
Definition CommonTypes.h:18
CoordinateUnit
The unit of the coordinate data of the point cloud.
Definition CommonTypes.h:16
Describes the types of errors.
Definition ErrorStatus.h:12
The pixel element struct with the normal vector coordinate (x, y, z) information.
Definition Frame3D.h:59
Represents a point in TexturedPointCloud with the coordinate (x, y, z) and texture (blue,...
Definition Frame2DAnd3D.h:52
uint8_t g
Green channel.
Definition Frame2DAnd3D.h:71
PointXYZBGR(float x, float y, float z)
Definition Frame2DAnd3D.h:54
PointXYZBGR(float x, float y, float z, uint8_t b, uint8_t g, uint8_t r, uint8_t a=255)
Definition Frame2DAnd3D.h:56
float rgb
Definition Frame2DAnd3D.h:75
PointXYZBGR()
Definition Frame2DAnd3D.h:53
uint8_t b
Blue channel.
Definition Frame2DAnd3D.h:70
uint8_t r
Red channel.
Definition Frame2DAnd3D.h:72
PointXYZBGR(const PointXYZBGR &p)
Definition Frame2DAnd3D.h:60
PointXYZBGR(uint8_t b, uint8_t g, uint8_t r, uint8_t a)
Definition Frame2DAnd3D.h:55
float y
Y channel, default unit: mm, invalid data: nan.
Definition Frame2DAnd3D.h:64
float x
X channel, default unit: mm, invalid data: nan.
Definition Frame2DAnd3D.h:63
uint8_t a
Transparency channel.
Definition Frame2DAnd3D.h:73
float z
Z channel, default unit: mm, invalid data: nan.
Definition Frame2DAnd3D.h:65
The pixel element struct in TexturedPointCloudWithNormals with the coordinate (x, y,...
Definition Frame2DAnd3D.h:85
NormalVector normal
Definition Frame2DAnd3D.h:87
PointXYZBGR colorPoint
Definition Frame2DAnd3D.h:86