public class TrackSequence extends java.lang.Object implements java.util.List<ObjectLocation>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ObjectLocation> |
locations |
protected int[] |
xpf |
protected int[] |
ypf |
Constructor and Description |
---|
TrackSequence() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
ObjectLocation element) |
boolean |
add(ObjectLocation e) |
boolean |
addAll(java.util.Collection<? extends ObjectLocation> c) |
boolean |
addAll(int index,
java.util.Collection<? extends ObjectLocation> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
ObjectLocation |
get(int index) |
static java.util.List<TrackSequence> |
getConnectedSequences(ObjectLocation[] locations)
Returns a list of TrackSequences.
|
int |
getFirstFrameIndex()
Returns the frame index of the first coordinate.
|
ObjectLocation |
getFirstPoint()
Returns the first coordinate of the TrackSequence.
|
static java.util.List<TrackSequence> |
getInnerSequences(ObjectLocation[] locations,
ij.gui.Roi roi)
Returns a list of TrackSequences located within an area.
|
int |
getLastFrameIndex()
Returns the frame index of the last coordinate.
|
ObjectLocation |
getLastPoint()
Returns the last coordinate of the TrackSequence.
|
ij.gui.PolygonRoi |
getRoi()
Returns a polyline of the track.
|
ij.gui.PolygonRoi |
getRoi(int length)
Returns a polyline of the track until the given length.
|
ij.gui.PolygonRoi |
getRoiByIndex(int index)
Returns a polyline of the track until a given frame index.
|
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<ObjectLocation> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<ObjectLocation> |
listIterator() |
java.util.ListIterator<ObjectLocation> |
listIterator(int index) |
ObjectLocation |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
ObjectLocation |
set(int index,
ObjectLocation element) |
int |
size() |
java.util.List<ObjectLocation> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected java.util.List<ObjectLocation> locations
protected transient int[] xpf
protected transient int[] ypf
public static java.util.List<TrackSequence> getInnerSequences(ObjectLocation[] locations, ij.gui.Roi roi)
locations
- array of coordinatesroi
- Region Of Interestpublic static java.util.List<TrackSequence> getConnectedSequences(ObjectLocation[] locations)
locations
- array of coordinatespublic ObjectLocation getFirstPoint()
public ObjectLocation getLastPoint()
public int getFirstFrameIndex()
public int getLastFrameIndex()
public ij.gui.PolygonRoi getRoi()
public ij.gui.PolygonRoi getRoi(int length)
public ij.gui.PolygonRoi getRoiByIndex(int index)
index
- frame index (zero-based).public boolean add(ObjectLocation e)
add
in interface java.util.Collection<ObjectLocation>
add
in interface java.util.List<ObjectLocation>
public void add(int index, ObjectLocation element)
add
in interface java.util.List<ObjectLocation>
public boolean addAll(java.util.Collection<? extends ObjectLocation> c)
addAll
in interface java.util.Collection<ObjectLocation>
addAll
in interface java.util.List<ObjectLocation>
public boolean addAll(int index, java.util.Collection<? extends ObjectLocation> c)
addAll
in interface java.util.List<ObjectLocation>
public void clear()
clear
in interface java.util.Collection<ObjectLocation>
clear
in interface java.util.List<ObjectLocation>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<ObjectLocation>
contains
in interface java.util.List<ObjectLocation>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<ObjectLocation>
containsAll
in interface java.util.List<ObjectLocation>
public ObjectLocation get(int index)
get
in interface java.util.List<ObjectLocation>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<ObjectLocation>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<ObjectLocation>
isEmpty
in interface java.util.List<ObjectLocation>
public java.util.Iterator<ObjectLocation> iterator()
iterator
in interface java.lang.Iterable<ObjectLocation>
iterator
in interface java.util.Collection<ObjectLocation>
iterator
in interface java.util.List<ObjectLocation>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<ObjectLocation>
public java.util.ListIterator<ObjectLocation> listIterator()
listIterator
in interface java.util.List<ObjectLocation>
public java.util.ListIterator<ObjectLocation> listIterator(int index)
listIterator
in interface java.util.List<ObjectLocation>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<ObjectLocation>
remove
in interface java.util.List<ObjectLocation>
public ObjectLocation remove(int index)
remove
in interface java.util.List<ObjectLocation>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<ObjectLocation>
removeAll
in interface java.util.List<ObjectLocation>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<ObjectLocation>
retainAll
in interface java.util.List<ObjectLocation>
public ObjectLocation set(int index, ObjectLocation element)
set
in interface java.util.List<ObjectLocation>
public int size()
size
in interface java.util.Collection<ObjectLocation>
size
in interface java.util.List<ObjectLocation>
public java.util.List<ObjectLocation> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<ObjectLocation>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<ObjectLocation>
toArray
in interface java.util.List<ObjectLocation>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<ObjectLocation>
toArray
in interface java.util.List<ObjectLocation>