|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--Boundary
Boundary is an algorithm used to track the edge of a binary image.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
Boundary()
Default no argument constructor. |
|
| Method Summary | |
BinaryFast |
apply_boundary(BinaryFast input,
int width,
int height)
Applies the algorithm: scans a pixel if it is a boundary pixel and marks it as scanned with 128. |
void |
clear_interior(int x,
int y)
resets all pixels with value 255 adjacent to current pixel to 64 (interior point) or 192 (interior boundary) |
void |
single_track(int x,
int y)
Scans a boundary pixel and the others adjacent to it until it comes back to the starting point |
boolean |
starting_point(int x,
int y)
|
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
run,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Boundary()
| Method Detail |
public void single_track(int x,
int y)
x,y - position of the starting point
public void clear_interior(int x,
int y)
position - of the current pixel
public boolean starting_point(int x,
int y)
position - of the current pixel
public BinaryFast apply_boundary(BinaryFast input,
int width,
int height)
input - the input binary imagewidth - of the input imageheight - of the input image
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||