31 #ifndef RTABMAP_FLANN_DATASET_H_ 32 #define RTABMAP_FLANN_DATASET_H_ 54 data =
static_cast<uchar*
>(data_);
79 template<
typename Archive>
86 if (Archive::is_loading::value) {
87 data =
new uchar[rows*
stride];
102 template <
typename T>
112 Matrix(T* data_,
size_t rows_,
size_t cols_,
size_t stride_ = 0) :
123 return reinterpret_cast<T*
>(
data+index*
stride);
129 return reinterpret_cast<T*
>(
data);
135 #endif //FLANN_DATASET_H_ void * operator[](size_t index) const
T * operator[](size_t index) const
void serialize(Archive &ar)
Matrix_(void *data_, size_t rows_, size_t cols_, flann_datatype_t type_, size_t stride_=0)
size_t flann_datatype_size(flann_datatype_t type)
Matrix(T *data_, size_t rows_, size_t cols_, size_t stride_=0)
const binary_object make_binary_object(void *t, size_t size)