GithubHelp home page GithubHelp logo

Comments (2)

mariusmuja avatar mariusmuja commented on July 19, 2024

Fixed in d425315.

from flann.

mariusmuja avatar mariusmuja commented on July 19, 2024

Hi Andrew,

Thanks for reporting this issue. It was a silly bug that slipped in the
latest release. I'm on my way back from ICRA, I'll make another quick
release containing the fix when I get home.

Regards,
Marius

On May 13, 2011 8:19am, AndrewWalker
[email protected]
wrote:

I'm not sure if I'm doing something incorrectly, but the nn_radius query
available in the python bindings seems to be triggering an assertion. The
following minimal example triggers the problem on my machine. FLANN
1.6.9, compiled with with gcc 4.4.3, and accessing the library from
python 2.6.5.

from pyflann import *

from numpy import *

from numpy.random import *

dataset = rand(10000, 3)

testset = rand(3)

flann = FLANN()

flann = FLANN()

params = flann.build_index(dataset, target_precision=0.9, log_level
= "info");

result, dists = flann.nn_radius(testset,0.2, checks=params["checks"])

Which results in the following assertion:

{'branching': 32, 'cb_index':
0.5, 'centers_init': 'default', 'log_level': 'info', 'algorithm': 'default', 'build_weight':
0.0099999997764825821, 'leaf_max_size': 4, 'eps': 0.0, 'trees':
1, 'speedup': 0.0, 'memory_weight': 0.0, 'target_precision':
0.89999997615814209, 'sample_fraction':
0.10000000149011612, 'iterations': 5, 'random_seed': 822048278, 'checks':
32}

python:
/home/walkera/software/flann-1.6.9-src/src/cpp/flann/algorithms/kdtree_index.h:540:
void flann::KDTreeIndex::getNeighbors(flann::ResultSet&, const typename
Distance::ElementType*, int, float) [with Distance = flann::L2]:
Assertion `result.full()' failed.

Command terminated

Reply to this email directly or view it on GitHub:

#6

from flann.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.