|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--Threshold
Threshold is an algorithm to apply thresholding to an image.
code.iface.threshold| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
Threshold()
Constructs a new Threshold |
|
| Method Summary | |
int[] |
flip_the_pixels(int[] src,
int w,
int h)
Turns all the black pixels in the specified image array to white and vice versa |
int[] |
threshold(int[] src,
int width,
int height,
int value)
Applies the thresholding operator with the specified threshold value to the specified image array |
int[] |
twothreshold(int[] src,
int width,
int height,
int low,
int high)
Applies the thresholding operator between the specified threshold values to the specified image array |
| 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 Threshold()
| Method Detail |
public int[] threshold(int[] src,
int width,
int height,
int value)
src - pixel array representing image to be thresholdedwidth - width of the image in pixelsheight - height of the image in pixelsvalue - threshold value
public int[] twothreshold(int[] src,
int width,
int height,
int low,
int high)
src - pixel array representing image to be thresholdedwidth - width of the image in pixelsheight - height of the image in pixelslow - lower threshold valuehigh - higher threshold value
public int[] flip_the_pixels(int[] src,
int w,
int h)
src - The black and white pixel array whose values are to be inverted
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||