de.unihalle.informatik.MiToBo.core.datatypes.neurites
Class MTBNeurite2DSet

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDData
      extended by de.unihalle.informatik.MiToBo.core.datatypes.neurites.MTBNeurite2DSet

public class MTBNeurite2DSet
extends de.unihalle.informatik.Alida.operator.ALDData

Class to represent a set of MTBNeurite2D objects.

Author:
Danny Misiak
See Also:
MTBNeurite2D

Constructor Summary
MTBNeurite2DSet()
          Constructor to create a new set of neurites.
 
Method Summary
 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.
 
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData
cloneProperties, getLocation, getProperty, getPropertyKeys, print, setLocation, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTBNeurite2DSet

public MTBNeurite2DSet()
Constructor to create a new set of neurites.

Method Detail

add

public void add(MTBNeurite2D neurite)
Appends the specified element to the end of this list.

Parameters:
neurite - new neurite to add

addElementAt

public void addElementAt(int index,
                         MTBNeurite2D neurite)
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Parameters:
index - index for the new element
neurite - new neurite to set at the specified index

getElementAt

public MTBNeurite2D getElementAt(int index)
Returns the element at the specified position in this list.

Parameters:
index - index of the element to get
Returns:
Element at specified index.

setElementAt

public void setElementAt(int index,
                         MTBNeurite2D neurite)
Replaces the element at the specified position in this list with the specified element.

Parameters:
index - position to set the neurite
neurite - neurite to set

isEmpty

public boolean isEmpty()
Returns true if this collection contains no elements.

Returns:
True if list is empty.

removeElementAt

public MTBNeurite2D removeElementAt(int index)
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

Parameters:
index - index of the element to remove
Returns:
Element at specified index.

size

public int size()
Returns the number of elements in this list.

Returns:
Number of elements.

getNeuriteStack

public MTBImage getNeuriteStack(Color regionColor)
Visualize the neurites skeleton graphs and regions. Edge points colored in bright green, END nodes colored in red, BRANCH nodes colored in blue and START nodes colored in green. The features (border lines) are colored in yellow. Regions can be shown in special colors via an 3-element int array.

Parameters:
regionColor - neurite region color in 3-element RGB array red[0], green[1], blue[2], if null no regions are drawn
Returns:
stack of neurites of the current neurite set.

getNeuriteImage

public MTBImageRGB getNeuriteImage(Color regionColor)
Visualize the neurites skeleton graphs and regions. Edge points colored in bright green, END nodes colored in red, BRANCH nodes colored in blue and START nodes colored in green. The features (border lines) are colored in yellow. Regions can be shown in special colors via an 3-element int array.

Parameters:
regionColor - neurite region color in 3-element RGB array red[0], green[1], blue[2], if null no regions are drawn
Returns:
image of neurites of the current neurite set.


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.