![]() |
Version: 1.0 |
Generates all the forests needed to handle one line of the image. More...
#include <forest.h>
Classes | |
struct | CreateReducedDrag |
Creates forest of trees pruning original tree. More... | |
Public Member Functions | |
LineForestHandler () | |
LineForestHandler (const BinaryDrag< conact > &t, const pixel_set &ps, const constraints &initial_constraints={}) | |
void | RemoveUselessConditions () |
void | RemoveEndTreesUselessConditions () |
void | UpdateNext (BinaryDrag< conact >::node *n) |
bool | RemoveEqualTrees () |
bool | RemoveEquivalentTrees () |
bool | RemoveEqualEndTrees () |
bool | RemoveEquivalentEndTrees () |
void | InitNextRec (BinaryDrag< conact >::node *n) |
void | CreateReducedTreesRec (const BinaryDrag< conact >::node *n, const constraints &constr={}) |
void | CreateReducedTrees (const BinaryDrag< conact > &t, const constraints &initial_constr) |
Static Public Member Functions | |
static BinaryDrag< conact >::node * | Reduce (const BinaryDrag< conact >::node *n, BinaryDrag< conact > &t, const constraints &constr) |
Public Attributes | |
BinaryDrag< conact > | f_ |
std::vector< BinaryDrag< conact > > | end_forests_ |
std::vector< size_t > | next_tree_ |
std::vector< std::vector< size_t > > | end_next_tree_ |
std::vector< std::vector< size_t > > | main_end_tree_mapping_ |
Generates all the forests needed to handle one line of the image.
LineForestHandler::LineForestHandler | ( | const BinaryDrag< conact > & | t, |
const pixel_set & | ps, | ||
const constraints & | initial_constraints = {} |
||
) |
Definition at line 18 of file forest.cpp.
void LineForestHandler::CreateReducedTrees | ( | const BinaryDrag< conact > & | t, |
const constraints & | initial_constr | ||
) |
void LineForestHandler::CreateReducedTreesRec | ( | const BinaryDrag< conact >::node * | n, |
const constraints & | constr = {} |
||
) |
void LineForestHandler::InitNextRec | ( | BinaryDrag< conact >::node * | n | ) |
Definition at line 335 of file forest.cpp.
|
static |
Definition at line 349 of file forest.cpp.
void LineForestHandler::RemoveEndTreesUselessConditions | ( | ) |
Definition at line 221 of file forest.cpp.
bool LineForestHandler::RemoveEqualEndTrees | ( | ) |
Definition at line 233 of file forest.cpp.
bool LineForestHandler::RemoveEqualTrees | ( | ) |
Definition at line 261 of file forest.cpp.
bool LineForestHandler::RemoveEquivalentEndTrees | ( | ) |
Definition at line 241 of file forest.cpp.
bool LineForestHandler::RemoveEquivalentTrees | ( | ) |
Definition at line 257 of file forest.cpp.
void LineForestHandler::RemoveUselessConditions | ( | ) |
Definition at line 212 of file forest.cpp.
void LineForestHandler::UpdateNext | ( | BinaryDrag< conact >::node * | n | ) |
Definition at line 247 of file forest.cpp.
std::vector<BinaryDrag<conact> > LineForestHandler::end_forests_ |
std::vector<std::vector<size_t> > LineForestHandler::end_next_tree_ |
BinaryDrag<conact> LineForestHandler::f_ |
std::vector<std::vector<size_t> > LineForestHandler::main_end_tree_mapping_ |