@ALDDerivedClass public class MTBRootTree extends MTBTree implements Cloneable
All relevant data required to properly represent the nodes of a
plant root tree is stored in the node data objects of
type MTBRootTreeNodeData.
MTBRootTreeNodeData| Constructor and Description |
|---|
MTBRootTree()
Default constructor.
|
MTBRootTree(MTBPoint2DSet point2DSet)
Constructor with given set of 2D points.
|
MTBRootTree(MTBRootTreeNodeData d)
Constructor with given data.
|
MTBRootTree(MTBTreeNode n)
Constructor with given root node.
|
| Modifier and Type | Method and Description |
|---|---|
MTBRootTree |
clone() |
private void |
drawChilds(MTBImageRGB img,
MTBTreeNode node)
Recursively draws all subtrees outgoing from the given node to the image.
|
void |
drawToImage(MTBImageRGB img)
Draws the root tree to the given image.
|
boolean |
reroot(MTBTreeNode node)
Sets the given node as the new root.
|
cloneChild, getAllNodesDepthFirst, getRoot, printTreepublic MTBRootTree()
The tree is initialized with just a root node with empty node data.
public MTBRootTree(MTBRootTreeNodeData d)
The tree is initialized with the given node data for the root node.
public MTBRootTree(MTBTreeNode n)
The tree is initialized with the given node as the root node.
public MTBRootTree(MTBPoint2DSet point2DSet)
point2DSet - 2D points that are assumed to be in order and represent a line.public boolean reroot(MTBTreeNode node)
node - A node that is part of this tree.public MTBRootTree clone()
public void drawToImage(MTBImageRGB img)
The colors of the segments are chosen according to the status:
img - Image to which the tree is to be drawn.private void drawChilds(MTBImageRGB img, MTBTreeNode node)
img - Target image.node - Source node.Copyright © 2010–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.