![]() |
Version: 1.0 |
Creates forest of trees pruning original tree. More...
#include <forest.h>
Public Member Functions | |
CreateReducedDrag (const BinaryDrag< conact > &bd, BinaryDrag< conact > &f, const pixel_set &ps) | |
void | CreateReducedTreesRec (const BinaryDrag< conact >::node *n, const constraints &constr) |
Public Attributes | |
const BinaryDrag< conact > & | bd_ |
BinaryDrag< conact > & | f_ |
Equivalences | eq_ |
Creates forest of trees pruning original tree.
The pruning is performed as follows: the original tree is recursively explored and constraints (different on each branch) are defined using equivalences between pixels (i.e. pixels which remain in the mask when it moves). When a leaf is reached the original tree is reduced using current branch's constraints. All the attributes are temporary objects, so this class can be used as function.
|
inline |
|
inline |
const BinaryDrag<conact>& LineForestHandler::CreateReducedDrag::bd_ |
Equivalences LineForestHandler::CreateReducedDrag::eq_ |
BinaryDrag<conact>& LineForestHandler::CreateReducedDrag::f_ |