39 #include <pcl/pcl_exports.h> 40 #include <pcl/gpu/containers/device_memory.h> 63 enum { elem_size =
sizeof(T) };
88 void create(std::size_t size);
102 void upload(
const T *host_ptr, std::size_t size);
107 void download(T *host_ptr)
const;
113 void upload(
const std::vector<T, A>& data);
119 void download(std::vector<T, A>& data)
const;
130 const T* ptr()
const;
138 operator const T*()
const;
141 std::size_t size()
const;
160 enum { elem_size =
sizeof(T) };
177 DeviceArray2D(
int rows,
int cols,
void *data, std::size_t stepBytes);
189 void create(
int rows,
int cols);
205 void upload(
const void *host_ptr, std::size_t host_step,
int rows,
int cols);
211 void download(
void *host_ptr, std::size_t host_step)
const;
223 void upload(
const std::vector<T, A>& data,
int cols);
230 void download(std::vector<T, A>& data,
int& cols)
const;
240 const T* ptr(
int y = 0)
const;
248 operator const T*()
const;
257 std::size_t elem_step()
const;
268 #include <pcl/gpu/containers/impl/device_array.hpp>
A structure representing RGB color information.
PointType type
Element type.