34#include "api_global.h"
42class ProfileBatchImpl;
186 double xResolution,
double yResolution,
bool useEncoderValues,
int triggerInterval,
187 CoordinateUnit coordinateUnit = CoordinateUnit::Millimeter)
const;
206 double xResolution,
double yResolution,
bool useEncoderValues,
int triggerInterval,
207 CoordinateUnit coordinateUnit = CoordinateUnit::Millimeter)
const;
236 bool useEncoderValues,
int triggerInterval,
237 FileFormat fileFormat,
const std::string& fileName,
239 bool isOrganized =
false)
const;
268 bool useEncoderValues,
int triggerInterval,
269 FileFormat fileFormat,
const std::string& fileName,
271 bool isOrganized =
false)
const;
294 bool isOrganized =
false,
CoordinateUnit coordinateUnit = CoordinateUnit::Millimeter);
316 bool isOrganized =
false,
CoordinateUnit coordinateUnit = CoordinateUnit::Millimeter);
334 std::shared_ptr<ProfileBatchImpl> _impl;
335 friend class ProfilerImpl;
336 friend class VirtualProfilerImpl;
#define MMIND_API_EXPORT
Definition api_global.h:48
Represents the data struct of the profile data.
Definition BatchArray.h:15
Represents a batch of profiles, which can be obtained by calling Profiler::retrieveBatchData()....
Definition ProfileData.h:74
void reserve(size_t height)
Reserves the input height for the ProfileBatch object.
ProfileIndexArray getProfileIndexArray() const
Gets an array of indices of all profiles in the batch. Each profile data corresponds to an index.
TexturedPointCloud getTexturedPointCloud(double xResolution, double yResolution, bool useEncoderValues, int triggerInterval, CoordinateUnit coordinateUnit=CoordinateUnit::Millimeter) const
Gets the textured point cloud data in the batch. Each point in TexturedPointCloud contains the X,...
size_t validHeight() const
Returns the valid height of the ProfileBatch object (the number of profiles with valid intensity and ...
UntexturedPointCloud getUntexturedPointCloud(double xResolution, double yResolution, bool useEncoderValues, int triggerInterval, CoordinateUnit coordinateUnit=CoordinateUnit::Millimeter) const
Gets the untextured point cloud data in the batch. Each point in UntexturedPointCloud contains the X,...
bool append(const ProfileBatch &batch)
Appends the data of one ProfileBatch object to another.
size_t width() const
Returns the width of the ProfileBatch object (the number of data points per profile).
static ErrorStatus saveTexturedPointCloud(const TexturedPointCloud &pointCloud, FileFormat FileFormat, const std::string &fileName, bool isOrganized=false, CoordinateUnit coordinateUnit=CoordinateUnit::Millimeter)
Saves the textured point cloud data in the batch. Each point in TexturedPointCloud contains the X,...
ErrorStatus saveUntexturedPointCloud(double xResolution, double yResolution, bool useEncoderValues, int triggerInterval, FileFormat fileFormat, const std::string &fileName, CoordinateUnit coordinateUnit=CoordinateUnit::Millimeter, bool isOrganized=false) const
Saves the untextured point cloud data in the batch. Each point in UntexturedPointCloud contains the X...
int getFlag() const
Gets the flags of the ProfileBatch object. See BatchFlag for details.
Profile getProfile(size_t profileIndex) const
Gets a profile in the batch by inputting the index of the profile.
~ProfileBatch()=default
Default destructor.
void clear()
Clears the data in the ProfileBatch object.
IntensityImage getIntensityImage() const
Gets the intensity image data in the batch. The invalid data of intensity image is 0.
BatchFlag
Describes the status of the ProfileBatch object.
Definition ProfileData.h:79
static ErrorStatus saveUntexturedPointCloud(const UntexturedPointCloud &pointCloud, FileFormat fileFormat, const std::string &fileName, bool isOrganized=false, CoordinateUnit coordinateUnit=CoordinateUnit::Millimeter)
Saves the untextured point cloud data in the batch. Each point in UntexturedPointCloud contains the X...
EncoderArray getEncoderArray() const
Gets an array of encoder values of all profiles in the batch. Each profile data corresponds to an enc...
bool isEmpty() const
Checks if the ProfileBatch object has no elements.
DepthMap getDepthMap() const
Gets the depth map data in the batch. Each point in DepthMap contains the Z information in the laser ...
size_t height() const
Returns the height of the ProfileBatch object (the number of profiles in the batch).
ProfileBatch(size_t width)
Constructor.
ErrorStatus getErrorStatus() const
Gets the error code and description of the function.
bool checkFlag(BatchFlag flag) const
Checks if the BatchFlag value of the ProfileBatch object matches the input value.
ErrorStatus saveTexturedPointCloud(double xResolution, double yResolution, bool useEncoderValues, int triggerInterval, FileFormat fileFormat, const std::string &fileName, CoordinateUnit coordinateUnit=CoordinateUnit::Millimeter, bool isOrganized=false) const
Saves the textured point cloud data in the batch. Each point in TexturedPointCloud contains the X,...
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
Represents a point in ProfileBatch::TexturedPointCloud with the coordinate (x, y, z,...
Definition ProfileData.h:61
unsigned char intensity
intensity channel.
Definition ProfileData.h:65
float y
Y channel, default unit: mm, invalid data: nan.
Definition ProfileData.h:63
float x
X channel, default unit: mm, invalid data: nan.
Definition ProfileData.h:62
float z
Z channel, default unit: mm, invalid data: nan.
Definition ProfileData.h:64
Describes a single profile.
Definition ProfileData.h:48
unsigned int profileIndex
Index of the profile.
Definition ProfileData.h:49
const unsigned char * intensity
Pointer to the intensity values of the profile.
Definition ProfileData.h:51
const float * depth
Definition ProfileData.h:52
unsigned int encoder
Corresponding encoder value of the profile.
Definition ProfileData.h:50