

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: INNER  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object  +movingregion.ObjectMatcher
This class contains the code to discover which cycles in two sets of cycles that overlap, and run the moving cycle creation algorithm found in the TriangleRep class.
Constructor Summary  
ObjectMatcher()
Constructor without parameters. 

ObjectMatcher(double minoverl,
double minoverlmatch,
double minoverlconc)
Constructor with only the matching criterion parameters. 

ObjectMatcher(LineWA[][] mregions0,
LineWA[][] mregions1,
double minoverl,
double minoverlmatch,
double minoverlconc)
Constructor with all parameters. 
Method Summary  
void 
addCycle(LineWA[] cycle,
int time,
int dx,
int dy,
double rot)
Adds a cycle to one of the snapshots. 
void 
computeOverlapGraph()
Computes the overlap graphs between the two sets of cycles already stored in this object. 
void 
findMatches(int whichregion)
Matches all cycles in one snapshot which have matches in the other snapshot and adds the graph representations to the trianglereps list. 
int[][][] 
getMatchEdges()
This function returns which cycles were used to create each moving cycle. 
TriangleRep[] 
getTriangleReps()
Gets the result of the interpolation. 
void 
matchCycles()
Matches the cycles of the two consecutive snapshots stored in this object. 
Methods inherited from class java.lang.Object 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 
public ObjectMatcher()
public ObjectMatcher(double minoverl, double minoverlmatch, double minoverlconc)
minoverl
 The minimum overlap between two cycles that is
required for an overlap graph edge to be inserted
between the two.minoverlmatch
 The minimum overlap between two concavities
for the interpolator to match them.minoverlconc
 The minimum overlap between two concavities for
an overlap graph edge to be inserted between them
by the concavity matcher.public ObjectMatcher(LineWA[][] mregions0, LineWA[][] mregions1, double minoverl, double minoverlmatch, double minoverlconc)
mregions0
 The first snapshot represented as a double array
of LineWA
objects. The outer array
represents the cycles and the inner array the
individual lines in each cycle.mregions1
 The second snapshot represented as a double array
of LineWA
objects.minoverl
 The minimum overlap between two cycles that is
required for an overlap graph edge to be inserted
between the two.minoverlmatch
 The minimum overlap between two concavities
for the interpolator to match them.minoverlconc
 The minimum overlap between two concavities for
an overlap graph edge to be inserted between them
by the concavity matcher.Method Detail 
public void addCycle(LineWA[] cycle, int time, int dx, int dy, double rot)
cycle
 The cycle represented as a LineWA
array.time
 Which snapshot the cycle should be added to. This may be
either 0 or 1.dx
 How much the cycle should be moved in the x direction.dy
 How much the cycle should be moved in the y direction.rot
 How many radians the cycle should be rotated.public void computeOverlapGraph()
public void findMatches(int whichregion)
trianglereps
list.whichregion
 Which snapshot should be matched. May be either
0 or 1.public void matchCycles()
public TriangleRep[] getTriangleReps()
matchCycles
function or using the constructor with
all parameters.)TriangleRep
array.public int[][][] getMatchEdges()
getTriangleReps
of the moving cycle for which you
want to know the snapshots. Snapshot is the snapshot, and
index is the number in this list of the snapshot.
snapindex is the index of the cycle in the list of
cycles that makes up the snapshot.


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: INNER  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 