Version: 1.0
Public Member Functions | Public Attributes | List of all members
LineForestHandler::CreateReducedDrag Struct Reference

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_
 

Detailed Description

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.

Definition at line 61 of file forest.h.

Constructor & Destructor Documentation

◆ CreateReducedDrag()

LineForestHandler::CreateReducedDrag::CreateReducedDrag ( const BinaryDrag< conact > &  bd,
BinaryDrag< conact > &  f,
const pixel_set ps 
)
inline

Definition at line 67 of file forest.h.

Member Function Documentation

◆ CreateReducedTreesRec()

void LineForestHandler::CreateReducedDrag::CreateReducedTreesRec ( const BinaryDrag< conact >::node *  n,
const constraints constr 
)
inline

Definition at line 73 of file forest.h.

Member Data Documentation

◆ bd_

const BinaryDrag<conact>& LineForestHandler::CreateReducedDrag::bd_

Definition at line 62 of file forest.h.

◆ eq_

Equivalences LineForestHandler::CreateReducedDrag::eq_

Definition at line 64 of file forest.h.

◆ f_

BinaryDrag<conact>& LineForestHandler::CreateReducedDrag::f_

Definition at line 63 of file forest.h.


The documentation for this struct was generated from the following file: