From 204c54291da9e82ee9251e77efea284e04fff897 Mon Sep 17 00:00:00 2001 From: Marius Muja Date: Thu, 6 Jan 2011 05:46:08 +0000 Subject: [PATCH] Bug fix in flann wrapper --- modules/flann/include/opencv2/flann/flann.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();