-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'poncateam:master' into add_mean_plane
- Loading branch information
Showing
11 changed files
with
2,873 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
|
||
/*! | ||
\page example_cxx_nanoflann_page Comparison between Nanoflann and Ponca KdTree APIs | ||
|
||
\section nanoflann_intro_sec Introduction | ||
|
||
This example demonstrates how to use Ponca and <a href="https://github.com/jlblancoc/nanoflann" target="_blank"> | ||
Nanoflann</a> (v1.5.0) KdTrees on the same data, and compare runtime performances. | ||
|
||
\subsection nanoflann_compilation_sec Compilation | ||
|
||
As for other examples, you need to enable the compilation of the examples with `cmake`, and build the examples: | ||
|
||
\code | ||
cmake [..] -DPONCA_CONFIGURE_EXAMPLES=ON | ||
make ponca-examples // or make ponca_nanoflann | ||
\endcode | ||
|
||
\section nanoflann_comparison_sec API comparisons | ||
|
||
Task | Ponca | Nanoflann | ||
---------------- | ----------------------------------------------------- | ------------- | ||
KdTree Creation | \snippet ponca_nanoflann.cpp Create Ponca KdTree | \snippet ponca_nanoflann.cpp Create NanoFlann KdTree | ||
Range Query | \snippet ponca_nanoflann.cpp Use Ponca KdTree | \snippet ponca_nanoflann.cpp Use NanoFlann KdTree | ||
|
||
The fitting object is a Ponca::DryFit, an object that filter the neighbors according to their weight (out of scale points | ||
are not counted), but do not perform any other computation: | ||
\snippet ponca_nanoflann.cpp Define Fit Type | ||
|
||
\section nanoflann_timings_sec Timings | ||
The example output the time required to collect the neighbors, and the number of neighbors collected: | ||
\code | ||
Timings: | ||
Raw : 0.168698 | ||
Ponca : 0.025475 | ||
Nanoflann : 0.027746 | ||
Number of neighbors: | ||
Raw : 950618 | ||
Ponca : 950618 | ||
Nanoflann : 950618 | ||
\endcode | ||
|
||
\section nanoflann_sourcecode_sec Example source code | ||
Source file: `ponca_nanoflann.cpp` | ||
\include ponca_nanoflann.cpp | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project(Ponca_Example_Nanoflann LANGUAGES CXX) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
add_executable(ponca_nanoflann ponca_nanoflann.cpp) | ||
target_include_directories(ponca_nanoflann PRIVATE ${PONCA_src_ROOT}) | ||
add_dependencies(ponca-examples ponca_nanoflann) | ||
ponca_handle_eigen_dependency(ponca_nanoflann) |
Oops, something went wrong.