diff --git a/modules/flann/include/opencv2/flann/flann.hpp b/modules/flann/include/opencv2/flann/flann.hpp index 0a9f38ffad..aecb584d29 100644 --- a/modules/flann/include/opencv2/flann/flann.hpp +++ b/modules/flann/include/opencv2/flann/flann.hpp @@ -104,7 +104,7 @@ Index_::Index_(const Mat& dataset, const IndexParams& params) { CV_Assert(dataset.type() == CvType::type()); CV_Assert(dataset.isContinuous()); - ::cvflann::Matrix m_dataset((T*)dataset.ptr(0), dataset.rows, dataset.cols); + ::cvflann::Matrix m_dataset((T*)dataset.ptr(0), dataset.rows, dataset.cols); nnIndex = new ::cvflann::Index(m_dataset, params); nnIndex->buildIndex();