38#include "api_global.h"
177 double& yOffset)
const;
198 bool isOrganized =
false)
const;
219 const std::string& fileName,
220 bool isOrganized =
false)
const;
241 const std::string& fileName,
bool isOrganized =
false,
266 bool isOrganized =
false,
CoordinateUnit pointCloudUnit = CoordinateUnit::Millimeter);
269 friend class CameraImpl;
271 friend class InternalInterfaces;
273 std::shared_ptr<class Frame3DImpl> _impl;
274 Frame3D(std::shared_ptr<Frame3DImpl>& 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 3D capture result, which can be obtained by calling Camera::capture3D....
Definition Frame3D.h:91
ErrorStatus saveUntexturedPointCloud(FileFormat fileFormat, const std::string &fileName, bool isOrganized=false) const
Saves the untextured point cloud to a file of the input file format and filename. Each point contains...
PointCloudWithNormals getUntexturedPointCloudWithNormals() const
Gets the organized 3D data map with a PointXYZWithNormals pixel data format. Each point in PointCloud...
Frame3D & operator=(const Frame3D &other) noexcept
Copy assignment.
Size imageSize() const
Gets the image size of Frame3D.
static ErrorStatus savePointCloudWithNormals(const PointCloudWithNormals &pointCloud, FileFormat fileFormat, const std::string &fileName, bool isOrganized=false, CoordinateUnit pointCloudUnit=CoordinateUnit::Millimeter)
Saves the untextured point cloud to a file of the input file format and filename. Each point contains...
static ErrorStatus savePointCloud(const PointCloud &pointCloud, FileFormat fileFormat, const std::string &fileName, bool isOrganized=false, CoordinateUnit pointCloudUnit=CoordinateUnit::Millimeter)
Saves the untextured point cloud to a file of the input file format and filename. Each point contains...
DepthMap getOrthogonalDepthMap(double &xScale, double &yScale, double &xOffset, double &yOffset) const
Obtains the 3D data with the PointZ data format. The 3D data is projected under the orthographic proj...
PointCloud getUntexturedPointCloud() const
Gets the organized 3D data map with a PointXYZ pixel data format. Each point in PointCloud contains t...
Frame3D(const Frame3D &other) noexcept
Copy constructor.
uint64_t frameId() const
The ID of the Frame3D frame.
void clear()
Clears the data in Frame3D and releases the associated resources.
bool isEmpty() const
Judges whether Frame3D is empty.
DepthMap getDepthMap() const
Gets the organized 3D data with the PointZ data format. Each point in DepthMap contains the depth (z-...
ErrorStatus saveUntexturedPointCloudWithNormals(FileFormat fileFormat, const std::string &fileName, bool isOrganized=false) const
Saves the untextured point cloud to a file of the input file format and filename. Each point contains...
FileFormat
Definition CommonTypes.h:18
Array2D< PointXYZ > UntexturedPointCloud
Definition Frame3D.h:77
CoordinateUnit
The unit of the coordinate data of the point cloud.
Definition CommonTypes.h:16
Array2D< PointXYZWithNormals > UntexturedPointCloudWithNormals
Definition Frame3D.h:78
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
float curvature
Normal curvature.
Definition Frame3D.h:63
float y
Normal vector Y coordinate, invalid data: nan.
Definition Frame3D.h:61
float x
Normal vector X coordinate, invalid data: nan.
Definition Frame3D.h:60
float z
Normal vector Z coordinate, invalid data: nan.
Definition Frame3D.h:62
Represents a point in UntexturedPointCloud with the coordinate (x, y, z) information.
Definition CommonTypes.h:102
The pixel element struct in UntexturedPointCloudWithNormals with the coordinate (x,...
Definition Frame3D.h:71
PointXYZ point
Definition Frame3D.h:72
NormalVector normal
Definition Frame3D.h:73
Represents a point in DepthMap with the depth (z-coordinate) information.
Definition Frame3D.h:51
float z
Depth channel, default unit: mm, invalid data: nan.
Definition Frame3D.h:52
Describes a two-dimensional size with a width and a height.
Definition CommonTypes.h:40