public class MTBNeurite2DSet
extends de.unihalle.informatik.Alida.operator.ALDData
MTBNeurite2D
Modifier and Type | Field and Description |
---|---|
private Vector<MTBNeurite2D> |
neuriteSet
The current set of neurites.
|
Constructor and Description |
---|
MTBNeurite2DSet()
Constructor to create a new set of neurites.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MTBNeurite2D neurite)
Appends the specified element to the end of this list.
|
void |
addElementAt(int index,
MTBNeurite2D neurite)
Inserts the specified element at the specified position in this list.
|
MTBNeurite2D |
getElementAt(int index)
Returns the element at the specified position in this list.
|
MTBImageRGB |
getNeuriteImage(Color regionColor)
Visualize the neurites skeleton graphs and regions.
|
MTBImage |
getNeuriteStack(Color regionColor)
Visualize the neurites skeleton graphs and regions.
|
boolean |
isEmpty()
Returns true if this collection contains no elements.
|
MTBNeurite2D |
removeElementAt(int index)
Removes the element at the specified position in this list.
|
void |
setElementAt(int index,
MTBNeurite2D neurite)
Replaces the element at the specified position in this list with the
specified element.
|
int |
size()
Returns the number of elements in this list.
|
private Vector<MTBNeurite2D> neuriteSet
public MTBNeurite2DSet()
public void add(MTBNeurite2D neurite)
neurite
- new neurite to addpublic void addElementAt(int index, MTBNeurite2D neurite)
index
- index for the new elementneurite
- new neurite to set at the specified indexpublic MTBNeurite2D getElementAt(int index)
index
- index of the element to getpublic void setElementAt(int index, MTBNeurite2D neurite)
index
- position to set the neuriteneurite
- neurite to setpublic boolean isEmpty()
public MTBNeurite2D removeElementAt(int index)
index
- index of the element to removepublic int size()
public MTBImage getNeuriteStack(Color regionColor)
regionColor
- neurite region color in 3-element RGB array red[0], green[1],
blue[2], if null no regions are drawnpublic MTBImageRGB getNeuriteImage(Color regionColor)
regionColor
- neurite region color in 3-element RGB array red[0], green[1],
blue[2], if null no regions are drawnCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.