Skip to content

An OpenFrameworks addon for libANN: Approximate Nearest Neighbor Search

Notifications You must be signed in to change notification settings

atduskgreg/ofxANN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofxANN

This is an addon for OpenFrameworks that wraps libANN, a library for Approximate Nearest Neighbor search. It is minimal and doesn't wrap all of ANN's extensive functionality. It currently only provides methods for loading ofVec3fs into ANN and getting the neighbors (this is all you need in most cases). Note: by default, ofxANN sets the allowed error margin to 0 making this exact nearest neighbor search rather than approximate. If you're searching for a lot of neighbors or over a truly titanic data set, you can set the allowed error margin to something higher with setEps().

There's an example to demonstrate API usage.

NOTE: ofxANN includes a 32-bit build of libANN that was created on Mac OSX for compatibility with OF. ANN is relatively easy to build if you follow the instructions for your system on their site. I welcome contributions that add support for other systems.

About

An OpenFrameworks addon for libANN: Approximate Nearest Neighbor Search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published