
modifié : CMakeListsOTB.txt modifié : LICENSE modifié : MakefileNoOTB modifié : Readme.html modifié : Readme.txt modifié : data/10m.tif modifié : data/areaThresholds.txt modifié : data/moiThresholds.txt modifié : data/sdThresholds.txt modifié : include/Appli/Option.hpp modifié : include/Appli/Selected.hpp modifié : include/Appli/Selected.tpp modifié : include/ArrayTree/ArrayTreeBuilder.hpp modifié : include/ArrayTree/ArrayTreeBuilder.tpp modifié : include/ArrayTree/Border.hpp modifié : include/ArrayTree/Border.tpp modifié : include/ArrayTree/GraphWalker.hpp modifié : include/ArrayTree/GraphWalker.tpp modifié : include/ArrayTree/Leader.hpp modifié : include/ArrayTree/Leader.tpp modifié : include/ArrayTree/Weight.hpp modifié : include/ArrayTree/Weight.tpp modifié : include/ArrayTree/triskeleArrayTreeBase.hpp modifié : include/ArrayTree/triskeleArrayTreeBase.tpp modifié : include/ArrayTree/triskeleSort.hpp modifié : include/ArrayTree/triskeleSort.tpp modifié : include/AttributeProfiles.hpp modifié : include/AttributeProfiles.tpp modifié : include/Attributes/AreaAttributes.hpp modifié : include/Attributes/AreaAttributes.tpp modifié : include/Attributes/AverageAttributes.hpp modifié : include/Attributes/AverageAttributes.tpp modifié : include/Attributes/MoIAttributes.hpp modifié : include/Attributes/MoIAttributes.tpp modifié : include/Attributes/SDAttributes.hpp modifié : include/Attributes/SDAttributes.tpp modifié : include/Attributes/WeightAttributes.hpp modifié : include/Attributes/WeightAttributes.tpp modifié : include/Attributes/XYAttributes.hpp modifié : include/Attributes/XYAttributes.tpp modifié : include/CompAttribute.hpp modifié : include/CompAttribute.tpp modifié : include/IImage.hpp modifié : include/IImage.tpp modifié : include/QuadTree/QuadTreeBuilder.hpp modifié : include/Tree.hpp modifié : include/Tree.tpp modifié : include/TreeBuilder.hpp modifié : include/TreeBuilder.tpp modifié : include/TreeStats.hpp modifié : include/TreeStats.tpp modifié : include/XMLTree/XMLTreeBuilder.hpp modifié : include/triskeleBase.hpp modifié : include/triskeleBase.tpp modifié : include/triskeleDealThreads.hpp modifié : include/triskeleDealThreads.tpp modifié : include/triskeleDebug.hpp modifié : include/triskeleGdalGetType.hpp modifié : otb-module.cmake modifié : src/Appli/Option.cpp modifié : src/Appli/Selected.cpp modifié : src/ArrayTree/triskeleArrayTreeBase.cpp modifié : src/CMakeLists.txt modifié : src/IImage.cpp modifié : src/PerfArrayTreeBuilder.cpp modifié : src/QuadTree/QuadTreeBuilder.cpp modifié : src/TestArrayTreeBuilder.cpp modifié : src/Tree.cpp modifié : src/TreeStats.cpp modifié : src/XMLTree/XMLTreeBuilder.cpp modifié : src/apGenerator.cpp modifié : src/triskeleBase.cpp modifié : src/triskeleDebug.cpp
41 lines
1.2 KiB
C++
Executable File
41 lines
1.2 KiB
C++
Executable File
#ifndef _OTB_TRISKELE_TREE_BUILDER_HPP
|
|
#define _OTB_TRISKELE_TREE_BUILDER_HPP
|
|
|
|
#include "triskeleBase.hpp"
|
|
#include "Tree.hpp"
|
|
|
|
namespace otb {
|
|
namespace triskele {
|
|
|
|
class TreeBuilder {
|
|
public:
|
|
|
|
static inline void buildTree (Tree &tree, TreeBuilder &builder);
|
|
static inline void buildTree (Tree &tree, TreeBuilder &&builder);
|
|
virtual inline void buildTree (Tree &tree);
|
|
|
|
protected:
|
|
// Used to set the attributes below with the tree
|
|
inline void setTreeSize (Tree &tree, const Size &size);
|
|
inline void getTranscient (Tree &tree);
|
|
inline DimImg getCompCount () const;
|
|
inline void setNodeCount (Tree &tree, DimNodeId nodeCount);
|
|
|
|
// Attributes corresponding to the tree, used to make the construction easier
|
|
DimImg leafCount;
|
|
DimNodeId nodeCount;
|
|
/*! Pointers on the parents of each leafs / nodes */
|
|
DimImg *leafParents, *compParents;
|
|
|
|
/*! Pointers on the children and count how many children a parents have */
|
|
DimNodeId *children, *childrenStart;
|
|
// XXX compWeights ???
|
|
};
|
|
|
|
#include "TreeBuilder.tpp"
|
|
|
|
} // triskele
|
|
} // otb
|
|
|
|
#endif // _OTB_TRISKELE_TREE_BUILDER_HPP
|