4#include "CommonTypes.h"
5#include "ErrorStatus.h"
10class ProfileBatchImpl;
137 std::shared_ptr<ProfileBatchImpl> _impl;
138 friend class ProfilerImpl;
139 friend class VirtualProfilerImpl;
Represents the data struct of the profile data.
Represents a batch of profiles, which can be obtained by calling Profiler::retrieveBatchData()....
bool isEmpty() const
Checks if the ProfileBatch object has no elements.
EncoderArray getEncoderArray() const
Gets an array of encoder values of all profiles in the batch. Each profile data corresponds to an enc...
IntensityImage getIntensityImage() const
Gets the intensity image data in the batch. The invalid data of intensity image is 0.
int getFlag() const
Gets the flags of the ProfileBatch object. See BatchFlag for details.
void reserve(size_t height)
Reserves the input height for the ProfileBatch object.
size_t validHeight() const
Returns the valid height of the ProfileBatch object (the number of profiles with valid intensity and ...
void clear()
Clears the data in the ProfileBatch object.
~ProfileBatch()=default
Default destructor.
bool checkFlag(BatchFlag flag) const
Checks if the BatchFlag value of the ProfileBatch object matches the input value.
ProfileBatch(size_t width)
Constructor.
ProfileIndexArray getProfileIndexArray() const
Gets an array of indices of all profiles in the batch. Each profile data corresponds to an index.
size_t width() const
Returns the width of the ProfileBatch object (the number of data points per profile).
ErrorStatus getErrorStatus() const
Gets the error code and description of the function.
bool append(const ProfileBatch &batch)
Appends the data of one ProfileBatch object to another.
size_t height() const
Returns the height of the ProfileBatch object (the number of profiles in the batch).
BatchFlag
Describes the status of the ProfileBatch object.
DepthMap getDepthMap() const
Gets the depth map data in the batch. Each point in DepthMap contains the Z information in the laser ...
Profile getProfile(size_t profileIndex) const
Gets a profile in the batch by inputting the index of the profile.
Describes the types of errors.
Describes a single profile.
const unsigned char * intensity
Pointer to the intensity values of the profile.
unsigned int encoder
Corresponding encoder value of the profile.
unsigned int profileIndex
Index of the profile.