Pierre-Emmanuel Viel
ec99f96c62
Add the ensureSimpleDistance() method to ensure the user the returned distance is not ^2 (the default for L2 for instance)
11 years ago
Pierre-Emmanuel Viel
2f8b5731da
Fix local variable shadowing
11 years ago
Pierre-Emmanuel Viel
e63d7de87c
Allows to choose orthogonal sub-vectors for LSH without using a static table among LshTable instances
11 years ago
1Hyena
6c118ebc51
Changed ostringstream to ostream for new print_params and added the old
...
version of print_params for backwards compatibility.
11 years ago
1Hyena
dfdb09386f
Autotuned_index now prints all info into logger instead of couting it.
11 years ago
Pierre-Emmanuel Viel
3f458c6eb1
Fix: freeing previous elements has to be done before loading new parameters to avoid trying to delete unexisting objects if arrays size was modified
11 years ago
Pierre-Emmanuel Viel
8e93c19de3
Fix a heap issue with static on Windows
11 years ago
Pierre-Emmanuel Viel
e85bacff7b
Avoid obtaining several identical dimensions between two LSH sub-vectors by choosing orthogonal sub-vectors.
11 years ago
Pierre-Emmanuel Viel
d3ac1bc314
When a cluster is empty for KMeans, it's better to give it the point from another cluster j that is the furthest one from center j.
11 years ago
Pierre-Emmanuel Viel
92fc763925
Fix some memory leaks in HierarchicalClusteringIndex
11 years ago
Pierre-Emmanuel Viel
0d19685f95
Move templates in dist.h in order to share them between KMeansIndex and HierarchicalClusteringIndex classes.
11 years ago
Pierre-Emmanuel Viel
fa749de0dc
As some processed distances are already ^2, use template to select whether or not we have to ^2 in KMeanspp
11 years ago
Pierre-Emmanuel Viel
5aeeaa6fce
Apply to KMeansIndex KMeanspp the same modification as in HierarchicalClusteringIndex
11 years ago
Pierre-Emmanuel Viel
45e0e5f8e9
Pick centers in KMeans++ with a probability proportional to their distance^2, instead of simple distance, to previous centers
11 years ago
Roman Donchenko
fec697b390
Silenced a few -Wcast-align warnings in the headers.
...
We don't use -Wcast-align ourselves, but the headers trigger warnings
for those users who do, which is not nice.
11 years ago
Roman Donchenko
a9975b144a
Fixed a bug in FLANN resulting in uninitialized accesses.
...
This is fixed upstream in mariusmuja/flann@b615f26, but that fix
would break binary compatibility, so I had to make a different one.
Since the bug isn't quite obvious, here's an explanation. In the const
version of any::cast, if policy is a small_any_policy, its get_value
returns its input argument. So r becomes a pointer to obj, and the
return value is a reference to a local variable, which is invalidated
when the function exits.
11 years ago
Roman Donchenko
e9a28f66ee
Normalized file endings.
11 years ago
Roman Donchenko
f55740da70
Deleted all trailing whitespace.
11 years ago
Roman Donchenko
d9f71b762f
Deleted almost all of the precomp.cpp files.
...
Looks like we don't actually use them; when creating precompiled headers
with Visual C++, a dummy .cpp is created at build time.
11 years ago
Alexander Smorkalov
2243118fc0
NEON instruction set enabled for WIN32 on ARM by default.
11 years ago
Roman Donchenko
ac39bfb4cc
Remove HAVE_CVCONFIG_H - it's always defined.
12 years ago
Andrey Kamaev
2665c39a0d
Fix build warnings from gcc 4.8
12 years ago
Alexander Smorkalov
6f68640d4d
Multiple fixes for WinRT
...
Fixed flann build with NEON;
Fixed Haming distance with NEON;
Honest cvRound for WinRT added;
cvRound test added;
Video IO with direct show disabled;
12 years ago
Ilya Lysenkov
098ea6fcb7
Checked key_size in LSH table for validness ( #2677 )
12 years ago
Ilya Lysenkov
1becbd9fcc
Added a test for invalid key sizes in LSH tables
12 years ago
Alexander Smorkalov
8cb0343f4c
Documentation build warning fixes.
...
Invalid links and refences fixed.
SpaeseMat class documentation updated.
12 years ago
Andrey Kamaev
40030d2ca0
Fix windows build warnings
12 years ago
OpenCV Buildbot
04384a71e4
Normalize line endings and whitespace
12 years ago
Andrey Kamaev
88e9a072ec
Fix binary compatibility of opencv_flann
12 years ago
Andrey Kamaev
a3b1971977
Bring back escaped virtual destructors from 2.4.2
12 years ago
Vadim Pisarevsky
d72cc06b96
fixed possibly inccorrect interval measurements in flann's timer (bug #1165 ). Note: this may break binary compatibility, but since the class is not wrapped in Java and not exposed in Windows API, for example (it's considered internal-use class for flann), the effect should be minimal
12 years ago
Andrey Kamaev
56b27bcc7e
Fix inconsistent argument type in HammingLUT distance (flann)
...
this fixes 64-bit MSVC warning
12 years ago
Vadim Pisarevsky
d54f4e1cfb
added #undef True/False to avoid collision with X11 (Patch #1562 )
12 years ago
Marius Muja
5cf6c5f0b2
Added test to fix backwards compatibility with the way LSH was handled before comit 7236858b
12 years ago
Marius Muja
7236858bea
Exposed HierarchicalClusteringIndex in OpenCV wrapper
12 years ago
Vadim Pisarevsky
0bd68a70f1
fixed #2297 , #2300 ; fixed several warnings
12 years ago
Alexander Mordvintesv
647b1dd96c
comment fixed
12 years ago
Alexander Mordvintesv
0998669d26
Revert "fixed LshIndex types in its constructor"
...
This reverts commit 54d68da8e7
.
12 years ago
Maria Dimashova
54d68da8e7
fixed LshIndex types in its constructor
12 years ago
Vincent Rabaud
fbf1973bac
backport 9018
13 years ago
Vincent Rabaud
3df72fe669
fix gcc C++11 bug mentioned in http://answers.opencv.org/question/283 . Bug also fixed in FLANN upstream
13 years ago
Marina Kolpakova
3def843652
merged the trunk r8719:8731 and 8807
13 years ago
Marina Kolpakova
680a44189c
merged the trunk r8704:8716
13 years ago
Vadim Pisarevsky
73ce3ef8c1
fixed ios framework build (ticket #2092 )
13 years ago
Andrey Kamaev
a381b95e91
Fixed buggy NEON check inside flann
13 years ago
Andrey Kamaev
e94e5866a1
Fixed mingw build warnings
13 years ago
Andrey Kamaev
d48d7b2b46
Updated warning options for GCC; fixed new warnings.
13 years ago
Andrey Kamaev
f666bd221f
Merged the trunk r8595:8668 (except iOS and new gpu functionality)
13 years ago
Andrey Kamaev
bd0e0b5800
Merged the trunk r8589:8653 - all changes related to build warnings
13 years ago
Andrey Kamaev
c5aba337e9
Fixed number of warnings. Fixed mingw64 build.
13 years ago