public class MergeTreeBuilder extends Object implements ComponentStackMergeListener
| Constructor and Description |
|---|
MergeTreeBuilder()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
componentPromoted(Component c1)
Called when the given component c1 is upwardly promoted to
a higher intensity value.
|
void |
componentsMerged(Component c1,
Component c2)
Called when component c2 is merged into component c1.
|
TreeNode<Component> |
getTree()
Return the tree that has been built.
|
public MergeTreeBuilder()
public void componentsMerged(Component c1, Component c2)
componentsMerged in interface ComponentStackMergeListenerc1 - The component that is receiving the mergec2 - The component that is providing the merge.ComponentStackMergeListener.componentsMerged(org.openimaj.image.analysis.watershed.Component,
org.openimaj.image.analysis.watershed.Component)public void componentPromoted(Component c1)
componentPromoted in interface ComponentStackMergeListenerc1 - The component being promoted.ComponentStackMergeListener.componentPromoted(org.openimaj.image.analysis.watershed.Component)