blobs
Class Searcher
java.lang.Object
blobs.Searcher
- Direct Known Subclasses:
- BlobFinder
- public class Searcher
- extends java.lang.Object
|
Method Summary |
void |
radiateFromSeed(Growable _blob,
java.awt.Point _seed,
int _increment,
java.awt.Shape _limitedSearchArea,
int _allowableGap,
int _numAlternateRoutes)
Routine radiates out in 8 directions from a given seed point. |
void |
scanAll(Growable _blob,
java.awt.Shape _limitedSearchArea)
|
void |
scanOutFromSeed(Growable _blob,
java.awt.Point _seed,
int _increment,
java.awt.Shape _limitedSearchArea,
int _allowableHGap,
int _allowableVGap)
Routine scans out from the center first to the left and up then to the right and down and finally to the left and up. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Searcher
public Searcher()
radiateFromSeed
public void radiateFromSeed(Growable _blob,
java.awt.Point _seed,
int _increment,
java.awt.Shape _limitedSearchArea,
int _allowableGap,
int _numAlternateRoutes)
- Routine radiates out in 8 directions from a given seed point. At various
key points in the search it shouts out function calls like newSeed, newPoint, newBorderPoint, finishedSeed etc.
- Parameters:
_seed - _increment - you can jump over pixels_limitedSearchArea - specify a sub section of the area to search_allowableGap - allow for gaps in the radiating out_numAlternateRoutes - how many detours (max 3) around bad pixels that you find
scanOutFromSeed
public void scanOutFromSeed(Growable _blob,
java.awt.Point _seed,
int _increment,
java.awt.Shape _limitedSearchArea,
int _allowableHGap,
int _allowableVGap)
- Routine scans out from the center first to the left and up then to the right and down and finally to the left and up. At various
key points in the search it shouts out function calls like newSeed, newPoint, newBorderPoint, finishedSeed etc.
- Parameters:
_seed - _increment - you don't have to check every point_limitedSearchArea - you can specify a limited area to searh_allowableHGap - you can forgive a few horizontal pixel. don't give up searching outward until you have missed this many_allowableVGap - you can forgive a few vertical pixel. don't give up searching up and down until you have missed this many
scanAll
public void scanAll(Growable _blob,
java.awt.Shape _limitedSearchArea)