5#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_CLOUD_H
6#define ALSON_CLASSIC_BASE_ENTITY_POINT_CLOUD_H
151 int size()
const {
return width * height; }
208 const T* ptr()
const;
230 T& at(
int i,
int j = 0);
252 const T& at(
int i,
int j = 0)
const;
451 void save(
const std::string& filename)
const;
687 void fromPclPointXYZ(
void* pclData)
const;
688 void fromPclPointXYZI(
void* pclData)
const;
689 void fromPclPointXYZRGB(
void* pclData)
const;
690 void fromPclPointXYZINormal(
void* pclData)
const;
691 void fromPclPointXYZRGBNormal(
void* pclData)
const;
693 void toPclPointXYZ(
void* pclData)
const;
694 void toPclPointXYZI(
void* pclData)
const;
695 void toPclPointXYZRGB(
void* pclData)
const;
696 void toPclPointXYZINormal(
void* pclData)
const;
697 void toPclPointXYZRGBNormal(
void* pclData)
const;
766 std::allocator<uint8_t> m_allocator;
789 const auto* p = (T*)
data + i *
width + j;
PointCloud(int w, int h, PointType t, uint8_t *d)
static PointCloud create(int width, int height, PointType pointType, uint8_t *data)
static PointCloud create(int width, int height, PointType pointType)
void save(const std::string &filename) const
PointCloud & operator=(const PointCloud &a)
static int getElementSize(PointType type)
static PointCloud load(const std::string &filename, PointType pointType=PointType::ALSON_POINT_XYZ)
PointCloud(int w, int h, PointType t)
PointCloud & operator=(PointCloud &&a) noexcept
static PointCloud createFromPcl(int width, int height, PointType pointType, void *pclData)
PointCloud(const PointCloud &a)
PointCloud(PointCloud &&a) noexcept
void cloneToPcl(void *pclData, PclPointType pclPointType) const
@ ALSON_POINT_XYZRGB_NORMAL
x、y、z、r、g、b、normal
@ ALSON_POINT_XYZI_NORMAL
x、y、z、index、normal
@ ALSON_POINT_XYZRGB
x、y、z、r、g、b
@ ALSON_POINT_XYZI
x、y、z、index
@ PCL_POINT_XYZRGB_NORMAL
x、y、z、r、g、b、normal
@ PCL_POINT_XYZI
x、y、z、index
@ PCL_POINT_XYZI_NORMAL
x、y、z、index、normal
@ PCL_POINT_XYZRGB
x、y、z、r、g、b