|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--IntersectionFinder
Finds intersections of LineSegment objects, and expands/combines the objects accordingly
Field Summary | |
int |
tick_count
|
int |
TICK_ID_START
|
Constructor Summary | |
IntersectionFinder(java.util.Vector _segments,
int[][] _pixels,
LineSegmentFitter _fitter)
|
Method Summary | |
void |
chainAndMarkSegments()
Chain Segments together that are within CHAINING_BOX_SIZE of each other. |
void |
extendSegments()
Perform 2-wing extensions on all unchained endpoints. |
TroubleSpot[] |
findTroubleSpots()
Finds failures close to one another in the image, and returns an array of TroubleSpots |
void |
handleTroubleSpot(TroubleSpot ts)
|
void |
handleTroubleSpot1(TroubleSpot ts)
special case for troublespot with 1 endpoint - just perform one-wing extension on the segment |
void |
handleTroubleSpot2(TroubleSpot ts)
special case for troublespot with 2 endpoints - could be a single line broken up by a tick mark that was too small to be assigned its own segment. |
void |
handleTroubleSpotN(TroubleSpot ts)
Generic case: check for colinear lines, merge them, and extend others |
void |
handleTroubleSpotTick(TroubleSpot ts)
Special case for tick marks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int tick_count
public int TICK_ID_START
Constructor Detail |
public IntersectionFinder(java.util.Vector _segments, int[][] _pixels, LineSegmentFitter _fitter)
Method Detail |
public void chainAndMarkSegments()
public void extendSegments()
public void handleTroubleSpot(TroubleSpot ts)
public void handleTroubleSpot1(TroubleSpot ts)
public void handleTroubleSpot2(TroubleSpot ts)
public void handleTroubleSpotN(TroubleSpot ts)
public void handleTroubleSpotTick(TroubleSpot ts)
public TroubleSpot[] findTroubleSpots()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |