template class cvflann::Matrix
Overview
Class that implements a simple rectangular matrix stored in a memory buffer and provides convenient matrix-like access using the [] operators. Moreā¦
#include <matrix.h> template <typename T> class Matrix { public: // typedefs typedef T type; // fields size_t cols; T* data; size_t rows; size_t stride; // construction Matrix(); Matrix( T* data_, size_t rows_, size_t cols_, size_t stride_ = 0 ); // methods void free(); T* operator[](size_t index) const; };
Detailed Documentation
Class that implements a simple rectangular matrix stored in a memory buffer and provides convenient matrix-like access using the [] operators.
Methods
void free()
Convenience function for deallocating the storage data.
T* operator[](size_t index) const
Operator that return a (pointer to a) row of the data.