@ALDDerivedClass public class MTBRootTreeNodeData extends MTBTreeNodeData
MTBRootTree
.
This class is intended to store data for representing plant roots in images. Its main purpose is the data exchange between rhizoTrak and MiToBo.
Modifier and Type | Field and Description |
---|---|
protected long[] |
connectorIDs
List of connectors the corresponding treeline is attached to.class
Note: usually a treeline should only be member of one connector,
only in case of conflicts there could be more.
|
protected int |
layer
Layer where the node is located.
|
protected double |
nx
Used for drawing the estimated diameter during Ridge Detection.
|
protected double |
ny
Used for drawing the estimated diameter during Ridge Detection.
|
protected double |
radius
Radius of the node
|
protected byte |
status
Status associated with the node.
|
protected double |
xPos
y-position of the node in 2D image space.
|
protected double |
yPos
y-position of the node in 2D image space.
|
Constructor and Description |
---|
MTBRootTreeNodeData()
Default constructor, all members are initialized with zero.
|
MTBRootTreeNodeData(double x,
double y)
Constructor with positional data.
|
Modifier and Type | Method and Description |
---|---|
MTBRootTreeNodeData |
clone()
Clone function.
|
long[] |
getConnectorIDs()
Get connector IDs.
|
int |
getLayer()
Get the layer where the node is located.
|
double |
getNx() |
double |
getNy() |
double |
getRadius()
Get the radius of the node.
|
byte |
getStatus()
Get the status of the node (segment).
|
double |
getXPos()
Get x-position of the node.
|
double |
getYPos()
Get y-position of the node.
|
void |
printData()
Method to print the data associated with the node.
|
void |
setConnectorIDs(long[] cs)
Set connector IDs.
|
void |
setLayer(int l)
Set the layer where the node is located.
|
void |
setNx(double nx) |
void |
setNy(double ny) |
void |
setRadius(double r)
Set the radius of the node.
|
void |
setStatus(byte s)
Set the status of the node (segment).
|
void |
setXPos(double x)
Set x-position of the node.
|
void |
setYPos(double y)
Set y-position of the node.
|
getNode, setNode
protected double xPos
protected double yPos
protected double nx
protected double ny
protected int layer
protected double radius
protected byte status
protected long[] connectorIDs
Note: usually a treeline should only be member of one connector, only in case of conflicts there could be more.
public MTBRootTreeNodeData()
public MTBRootTreeNodeData(double x, double y)
x
- x-position of the node.y
- y-position of the node.public MTBRootTreeNodeData clone()
clone
in class MTBTreeNodeData
public double getXPos()
public double getYPos()
public double getNx()
public double getNy()
public int getLayer()
public double getRadius()
public byte getStatus()
public long[] getConnectorIDs()
public void setXPos(double x)
x
- x-position.public void setYPos(double y)
y
- y-position.public void setNx(double nx)
public void setNy(double ny)
public void setLayer(int l)
l
- Layer.public void setRadius(double r)
r
- Node radius.public void setStatus(byte s)
s
- Status.public void setConnectorIDs(long[] cs)
cs
- List of connectors.public void printData()
MTBTreeNodeData
printData
in class MTBTreeNodeData
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.