projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf80fb
)
Bug fix in flann wrapper
author
Marius Muja
<no@email>
Thu, 6 Jan 2011 05:46:08 +0000
(
05:46
+0000)
committer
Marius Muja
<no@email>
Thu, 6 Jan 2011 05:46:08 +0000
(
05:46
+0000)
modules/flann/include/opencv2/flann/flann.hpp
patch
|
blob
|
history
diff --git
a/modules/flann/include/opencv2/flann/flann.hpp
b/modules/flann/include/opencv2/flann/flann.hpp
index
0a9f38f
..
aecb584
100644
(file)
--- a/
modules/flann/include/opencv2/flann/flann.hpp
+++ b/
modules/flann/include/opencv2/flann/flann.hpp
@@
-104,7
+104,7
@@
Index_<T>::Index_(const Mat& dataset, const IndexParams& params)
{
CV_Assert(dataset.type() == CvType<T>::type());
CV_Assert(dataset.isContinuous());
- ::cvflann::Matrix<
float
> m_dataset((T*)dataset.ptr<T>(0), dataset.rows, dataset.cols);
+ ::cvflann::Matrix<
T
> m_dataset((T*)dataset.ptr<T>(0), dataset.rows, dataset.cols);
nnIndex = new ::cvflann::Index<T>(m_dataset, params);
nnIndex->buildIndex();