public class TrackCollection extends Object
Track
Constructor and Description |
---|
TrackCollection(boolean isInitialPointIncluded)
Instantiates a new track collection.
|
Modifier and Type | Method and Description |
---|---|
void |
addPair(List<Point> backward,
List<Point> forward)
Add pair of tracks to collection.
|
void |
addPair(Polygon backward,
Polygon forward)
Add pair of tracks to collection backwardTrack,forwardTrack.
|
List<Pair<com.github.celldynamics.quimp.plugin.protanalysis.Track,com.github.celldynamics.quimp.plugin.protanalysis.Track>> |
getBf()
Get unmodifiable list of all tracks.
|
boolean |
isInitialPointIncluded()
Check if initial point is included in tracking.
|
Iterator<Pair<com.github.celldynamics.quimp.plugin.protanalysis.Track,com.github.celldynamics.quimp.plugin.protanalysis.Track>> |
iterator()
Get iterator over pairs of tracks (related to one starting point).
|
Iterator<com.github.celldynamics.quimp.plugin.protanalysis.Track> |
iteratorTrack()
Get iterator over all tracks in collection.
|
void |
saveTracks(Writer writer)
Save tracks to csv file.
|
public TrackCollection(boolean isInitialPointIncluded)
isInitialPointIncluded
- the is initial point includedpublic boolean isInitialPointIncluded()
public void addPair(Polygon backward, Polygon forward)
backward
- backward trackforward
- forward trackaddPair(List, List)
public void addPair(List<Point> backward, List<Point> forward)
backward
- backward track pointsforward
- forward track pointsaddPair(Polygon, Polygon)
public Iterator<Pair<com.github.celldynamics.quimp.plugin.protanalysis.Track,com.github.celldynamics.quimp.plugin.protanalysis.Track>> iterator()
public Iterator<com.github.celldynamics.quimp.plugin.protanalysis.Track> iteratorTrack()
public List<Pair<com.github.celldynamics.quimp.plugin.protanalysis.Track,com.github.celldynamics.quimp.plugin.protanalysis.Track>> getBf()
public void saveTracks(Writer writer) throws IOException
Format of the file is:
Point 000 backward;[frame],10.0,11.0 Point 000 backward;[index],110.0,111.0 Point 000 forward;[frame],0.0,1.0,2.0 Point 000 forward;[index],100.0,101.0,102.0 Point 001 backward;[frame],30.0,31.0,32.0,33.0,34.0 Point 001 backward;[index],130.0,131.0,132.0,133.0,134.0 Point 001 forward;[frame],20.0,21.0,22.0,23.0 Point 001 forward;[index],120.0,121.0,122.0,123.0
First columns is legend, next columns are indexes of rows and columns in maps returned from Q-Analysis. To obtain screen coordinates one can use xCoord and yCorrd maps. Tracks for each point are saved alternately in the order Backward - Forward. Each track occupies two rows for frame and outline position coordinates.
writer
- where to saveIOException
- on errorCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.