Cleaning and doxygen
This commit is contained in:
parent
0446e87c46
commit
7812622439
|
@ -29,11 +29,13 @@ class Skeleton
|
|||
|
||||
Skeleton();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// \brief
|
||||
unsigned int numberOfBranches() { return m_branches.size(); }
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// \brief loadFromFile : read a file at format skl and extract vertices
|
||||
/// and edges
|
||||
/// \brief read a file at format skl and extract vertices
|
||||
/// and edges
|
||||
///
|
||||
/// \param path String containing the path to the file at format skl
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
@ -41,8 +43,8 @@ class Skeleton
|
|||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// \brief loadFromVectors : create edges from a vector of vertices
|
||||
/// index
|
||||
/// \brief create edges from a vector of vertices
|
||||
/// index
|
||||
///
|
||||
/// For example, with the vector path = [1, 5, 8, 9, 12], the created
|
||||
/// edges are (1,5), (5,8), (8,9) and (9,12)
|
||||
|
@ -56,8 +58,8 @@ class Skeleton
|
|||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// \brief countNeighbors : count the number of neighbors of each
|
||||
/// vertex
|
||||
/// \brief count the number of neighbors of each
|
||||
/// vertex
|
||||
///
|
||||
/// Compute a vector of counters which has the same size as the number
|
||||
/// of vertices. The k-th element of the vector is the number of
|
||||
|
@ -79,14 +81,14 @@ class Skeleton
|
|||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
/// \brief draw : Draw the skeleton
|
||||
/// \brief Draw the skeleton
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
void draw() const;
|
||||
void draw(unsigned int i) const;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// \brief split : split the whole skeletons into branches of skeletons
|
||||
/// \brief split the whole skeletons into branches of skeletons
|
||||
///
|
||||
/// \return a vector of branches
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
@ -156,11 +158,10 @@ class Skeleton
|
|||
unsigned int searchNearestBrancheIndex(cv::KeyPoint const& keypoint,
|
||||
Skeleton branches
|
||||
);
|
||||
std::vector<geo::Vector3<float>> m_vertices;
|
||||
std::vector<geo::Vector<unsigned int,2>> m_edges;
|
||||
std::vector<Branch> m_branches;
|
||||
|
||||
static std::stringstream stream;
|
||||
std::vector<geo::Vector3<float>> m_vertices; ///< vertices of the skeleton
|
||||
std::vector<geo::Vector<unsigned int,2>> m_edges; ///< edges of the skeleton
|
||||
std::vector<Branch> m_branches; ///< branches of the skeleton, might be empty
|
||||
};
|
||||
|
||||
#endif // SKELETON_HPP
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
#include <Skeleton/Box.hpp>
|
||||
#include <Geometry/MathFunctions.hpp>
|
||||
|
||||
std::stringstream Skeleton::stream{};
|
||||
|
||||
|
||||
Skeleton::Skeleton() : m_vertices{}, m_edges{}, m_branches{}
|
||||
{
|
||||
|
||||
|
@ -23,6 +20,7 @@ bool Skeleton::loadFromFile(std::string const& path)
|
|||
{
|
||||
std::ifstream file{path};
|
||||
std::string line;
|
||||
std::stringstream stream;
|
||||
|
||||
if (!file)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue