ports/graphics/opencv/files/patch-modules-flann-include-opencv2-flann-lsh_index.h
Martin Matuska eed66ea71a Add fix from upstream for bug #1432 (Clang compilation fixes)
https://code.ros.org/trac/opencv/ticket/1432

Reported by:	Roman Divacky <rdivacky@FreeBSD.org>
Obtained from:	OpenCV (revision 6881)
2011-12-17 11:42:05 +00:00

13 lines
646 B
C

Index: modules/flann/include/opencv2/flann/lsh_index.h
===================================================================
--- modules/flann/include/opencv2/flann/lsh_index.h (revision 6880)
+++ modules/flann/include/opencv2/flann/lsh_index.h (revision 6881)
@@ -56,7 +56,7 @@
struct LshIndexParams : public IndexParams
{
- LshIndexParams(unsigned int table_number, unsigned int key_size, unsigned int multi_probe_level)
+ LshIndexParams(unsigned int table_number = 12, unsigned int key_size = 20, unsigned int multi_probe_level = 2)
{
(* this)["algorithm"] = FLANN_INDEX_LSH;
// The number of hash tables to use