public class MapTracker extends Object
Origin and coordinates maps are stored in both QCONF and paQP data files. Allow to track given outline point forward in backward using these maps.
Modifier and Type | Field and Description |
---|---|
static int |
BAD_INDEX
Denote bad index.
|
boolean |
includeFirst
Decides whether include starting point in tracking.
|
Constructor and Description |
---|
MapTracker(double[][] originMap,
double[][] coordMap)
Construct tracking maps.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getBackwardFrames(int currentFrame,
int timeSpan)
Deprecated.
Use
trackBackwardValid(int, int, int) instead |
int[] |
getForwardFrames(int currentFrame,
int timeSpan)
Deprecated.
Use
trackForwardValid(int, int, int) instead |
int |
getNext(int frame,
int membraneIndex)
Get position of membraneIndex on frame currentFrame+1.
|
int |
getPrev(int currentFrame,
int membraneIndex)
Get position of membraneIndex on frame currentFrame-1.
|
int[] |
trackBackward(int currentFrame,
int membraneIndex,
int timeSpan)
Deprecated.
Use trackBackwardValid(int, int, int) instead
|
List<Point> |
trackBackwardValid(int currentFrame,
int membraneIndex,
int timeSpan)
Track given point backward.
|
int[] |
trackForward(int currentFrame,
int membraneIndex,
int timeSpan)
Deprecated.
Use trackForwardValid(int, int, int) instead
|
List<Point> |
trackForwardValid(int currentFrame,
int membraneIndex,
int timeSpan)
Track given point forward.
|
public static final int BAD_INDEX
public boolean includeFirst
public MapTracker(double[][] originMap, double[][] coordMap)
Prepare tracking maps that are not stored by default in
DataContainer
. This code is based on Matlab
routine buildTrackMaps.m.
Note
All frames are numbered from 0 as well as outline indexes. Nonexisting indexes are marked as -1.
originMap
- originMap stored in
DataContainer
coordMap
- coordMap stored in
DataContainer
DataContainer
,
STmap
public int getNext(int frame, int membraneIndex)
frame
- frame number, counted from 0membraneIndex
- index of point on membrane on frame currentFramepublic int getPrev(int currentFrame, int membraneIndex)
currentFrame
- frame number, counted from 0membraneIndex
- index of point on membrane on frame currentFrame@Deprecated public int[] trackForward(int currentFrame, int membraneIndex, int timeSpan)
currentFrame
- Starting frame (not included in results - depends on
includeFirst flag)membraneIndex
- Tracked membrane indextimeSpan
- Number of frames to trackpublic List<Point> trackForwardValid(int currentFrame, int membraneIndex, int timeSpan)
currentFrame
- Starting frame (not included in results - depends on
includeFirst flag)membraneIndex
- Tracked membrane indextimeSpan
- Number of frames to track@Deprecated public int[] trackBackward(int currentFrame, int membraneIndex, int timeSpan)
currentFrame
- Starting frame (not included in results - depends on
includeFirst flag)membraneIndex
- Tracked membrane indextimeSpan
- Number of frames to trackpublic List<Point> trackBackwardValid(int currentFrame, int membraneIndex, int timeSpan)
currentFrame
- Starting frame (not included in results - depends on
includeFirst flag)membraneIndex
- Tracked membrane indextimeSpan
- Number of frames to track@Deprecated public int[] getForwardFrames(int currentFrame, int timeSpan)
trackForwardValid(int, int, int)
insteadThese are frames that trackForward(int, int, int)
returns indexes for. Input
parameters must be the same as for trackForward(int, int, int)
.
currentFrame
- Starting frame (not included in results)timeSpan
- timeSpan Number of frames to track@Deprecated public int[] getBackwardFrames(int currentFrame, int timeSpan)
trackBackwardValid(int, int, int)
insteadThese are frames that trackBackward(int, int, int)
returns indexes for. Input
parameters must be the same as for trackBackward(int, int, int)
.
currentFrame
- Starting frame (not included in results)timeSpan
- timeSpan Number of frames to trackCopyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.