Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
44df7039
Commit
44df7039
authored
Nov 19, 2016
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments of KDTreeVectorOfVectorsAdaptor updated
parent
842625cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
include/eos/fitting/closest_edge_fitting.hpp
include/eos/fitting/closest_edge_fitting.hpp
+7
-1
No files found.
include/eos/fitting/closest_edge_fitting.hpp
View file @
44df7039
...
...
@@ -213,6 +213,11 @@ std::vector<int> occluding_boundary_vertices(const eos::render::Mesh& mesh, cons
* typedef std::vector<std::vector<double> > my_vector_of_vectors_t;
* typedef std::vector<Eigen::VectorXd> my_vector_of_vectors_t;
*
* It works with any type inside the vector that has operator[] defined to access
* its elements, as well as a ::size() operator to return its number of dimensions.
* Eigen::VectorX is one of them. cv::Point is not (no [] and no size()), glm is also
* not (no size()).
*
* \tparam DIM If set to >0, it specifies a compile-time fixed dimensionality for the points in the data set, allowing more compiler optimizations.
* \tparam num_t The type of the point coordinates (typically, double or float).
* \tparam Distance The distance metric to use: nanoflann::metric_L1, nanoflann::metric_L2, nanoflann::metric_L2_Simple, etc.
...
...
@@ -228,6 +233,7 @@ struct KDTreeVectorOfVectorsAdaptor
index_t
*
index
;
//! The kd-tree index for the user to call its methods as usual with any other FLANN index.
/// Constructor: takes a const ref to the vector of vectors object with the data points
// Make sure the data is kept alive while the kd-tree is in use.
KDTreeVectorOfVectorsAdaptor
(
const
int
dimensionality
,
const
VectorOfVectorsType
&
mat
,
const
int
leaf_max_size
=
10
)
:
m_data
(
mat
)
{
assert
(
mat
.
size
()
!=
0
&&
mat
[
0
].
size
()
!=
0
);
...
...
@@ -297,7 +303,7 @@ struct KDTreeVectorOfVectorsAdaptor
/** @} */
};
// end of KDTreeVectorOfVectorsAdaptor
};
}
/* namespace fitting */
}
/* namespace eos */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment