4#include "CommonTypes.h"
5#include "ErrorStatus.h"
10class ProfileBatchImpl;
111 std::shared_ptr<ProfileBatchImpl> _impl;
112 friend class ProfilerImpl;
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.
void reserve(size_t height)
Reserves the input height for the ProfileBatch object.
void clear()
Clears the data in the ProfileBatch object.
~ProfileBatch()=default
Default destructor.
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).
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.