Class that implements a simple rectangular matrix stored in a memory buffer and provides convenient matrix-like access using the [] operators. More...
#include <opencv2/flann/matrix.h>
Public Types | |
typedef T | type |
Public Member Functions | |
Matrix () | |
Matrix (T *data_, size_t rows_, size_t cols_, size_t stride_=0) | |
void | free () |
Convenience function for deallocating the storage data. More... | |
T * | operator[] (size_t index) const |
Operator that return a (pointer to a) row of the data. More... | |
Public Attributes | |
size_t | cols |
T * | data |
size_t | rows |
size_t | stride |
Class that implements a simple rectangular matrix stored in a memory buffer and provides convenient matrix-like access using the [] operators.
typedef T cvflann::Matrix< T >::type |
|
inline |
|
inline |
|
inline |
Convenience function for deallocating the storage data.
|
inline |
Operator that return a (pointer to a) row of the data.
size_t cvflann::Matrix< T >::cols |
T* cvflann::Matrix< T >::data |
size_t cvflann::Matrix< T >::rows |
Referenced by cvflann::lsh::LshTable< ElementType >::add(), cvflann::compute_ground_truth(), cvflann::find_nearest(), cvflann::KMeansIndex< Distance >::getClusterCenters(), cvflann::AutotunedIndex< Distance >::getType(), cvflann::NNIndex< cv::L1< ElementType > >::knnSearch(), cvflann::load_saved_index(), cvflann::NNIndex< cv::L1< ElementType > >::radiusSearch(), and cvflann::search_with_ground_truth().
size_t cvflann::Matrix< T >::stride |
Referenced by cvflann::Matrix< ElementType >::operator[]().