public class MTBNeurite2DProfileSet
extends de.unihalle.informatik.Alida.operator.ALDData
MTBNeurite2DProfile
Modifier and Type | Field and Description |
---|---|
private LinkedList<MTBNeurite2DProfile> |
neuriteProfiles
The current list of the neurite profiles.
|
Constructor and Description |
---|
MTBNeurite2DProfileSet()
Constructor to create a new set of neurite profiles.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MTBNeurite2DProfile profile)
Appends the specified element to the end of this list.
|
void |
addElementAt(int index,
MTBNeurite2DProfile profile)
Inserts the specified element at the specified position in this list.
|
void |
addFirst(MTBNeurite2DProfile profile)
Inserts the specified element at the beginning of this list.
|
void |
addLast(MTBNeurite2DProfile profile)
Appends the specified element to the end of this list.
|
MTBNeurite2DProfile |
getElementAt(int index)
Returns the element at the specified position in this list.
|
MTBNeurite2DProfile |
getFirst()
Returns the first element in this list.
|
MTBNeurite2DProfile |
getLast()
Returns the last element in this list.
|
MTBImage |
getVoronoiStack()
Get stack of voronoi tesselation images.
|
boolean |
isEmpty()
Returns true if this collection contains no elements.
|
MTBNeurite2DProfile |
removeElementAt(int index)
Removes the element at the specified position in this list.
|
MTBNeurite2DProfile |
removeFirst()
Removes and returns the first element from this list.
|
MTBNeurite2DProfile |
removeLast()
Removes and returns the last element from this list.
|
boolean |
saveProfileSet(String file)
Saves the given profile data list with N profiles to the given file.
|
void |
setElementAt(int index,
MTBNeurite2DProfile profile)
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 LinkedList<MTBNeurite2DProfile> neuriteProfiles
public MTBNeurite2DProfileSet()
public void add(MTBNeurite2DProfile profile)
profile
- new profile to addpublic void addElementAt(int index, MTBNeurite2DProfile profile)
index
- index for the new elementprofile
- new profile to set at the specified indexpublic void addFirst(MTBNeurite2DProfile profile)
profile
- profile to add at first positionpublic void addLast(MTBNeurite2DProfile profile)
profile
- to add at last positionpublic MTBNeurite2DProfile getElementAt(int index)
index
- index of the element to getpublic void setElementAt(int index, MTBNeurite2DProfile profile)
index
- position to set the profileprofile
- profile to setpublic MTBNeurite2DProfile getFirst()
public MTBNeurite2DProfile getLast()
public boolean isEmpty()
public MTBNeurite2DProfile removeElementAt(int index)
index
- index of the element to removepublic MTBNeurite2DProfile removeFirst()
public MTBNeurite2DProfile removeLast()
public int size()
public boolean saveProfileSet(String file)
Each profile is written to a single column. Each column will have a different number of entries according to the different lengths of the profiles.
File format:
profs
- List of neurite profiles.file
- Output file (txt format).public MTBImage getVoronoiStack()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.