|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--ImageAnd
ImageAnd is an algorithm to apply logical AND/NAND between two images
code.iface.imageand
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
ImageAnd(int firstwidth,
int secondwidth)
Constructs a new Image And |
Method Summary | |
int[] |
doAnd(int[] src1_1d,
int[] src2_1d,
boolean NAND,
int width,
int height,
float oset,
float scale)
Applies the image AND operator on the specified image arrays, with the specified offset and scale value |
int[] |
doAnd(int[] src1_1d,
int constant,
boolean NAND,
int width,
int height,
float oset,
float scale)
ANDs the specified input image by the constant, also adds offset and scales |
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 ImageAnd(int firstwidth, int secondwidth)
firstwidth
- The width of the first imagesecondwidth
- The width of the second imageMethod Detail |
public int[] doAnd(int[] src1_1d, int[] src2_1d, boolean NAND, int width, int height, float oset, float scale)
src1_1d
- The first source image as a pixel arraysrc2_1d
- The second source image as a pixel arrayNAND
- Boolean to indicate wether we should NAND rather than ANDwidth
- width of the destination image in pixelsheight
- height of the destination image in pixelsoset
- The offset valuescale
- The scale valuepublic int[] doAnd(int[] src1_1d, int constant, boolean NAND, int width, int height, float oset, float scale)
src1_1d
- The input pixel arrayconstant
- The constant value to AND every pixel in the input array byNAND
- Boolean to indicate wether we should NAND rather than ANDwidth
- width of the destination image in pixelsheight
- height of the destination image in pixelsoset
- The offset valuescale
- The scale value
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |