public class CLImageArithmetic extends Object
Constructor and Description |
---|
CLImageArithmetic()
Default constructor.
|
CLImageArithmetic(com.nativelibs4java.opencl.CLContext context)
Construct with the given context.
|
Modifier and Type | Method and Description |
---|---|
com.nativelibs4java.opencl.CLImage2D |
add(com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2)
Add two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
add(com.nativelibs4java.opencl.CLImage2D in1,
float[] amt)
Add a constant to an image, returning a new image with the result
|
com.nativelibs4java.opencl.CLEvent |
add(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2,
com.nativelibs4java.opencl.CLImage2D out)
Add two images, storing the result in another image
|
com.nativelibs4java.opencl.CLEvent |
add(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
float[] amt,
com.nativelibs4java.opencl.CLImage2D out)
Add a constant to an image, storing the result in another image
|
<I extends Image<?,I>> |
add(I in1,
float[] amt)
Add a constant to an image, returning a new image with the result
|
<I extends Image<?,I>> |
add(I in1,
I in2)
Add two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
divide(com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2)
Divide two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
divide(com.nativelibs4java.opencl.CLImage2D in1,
float[] amt)
Divide an image by a constant, returning a new image with the result
|
com.nativelibs4java.opencl.CLEvent |
divide(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2,
com.nativelibs4java.opencl.CLImage2D out)
Divide two images, storing the result in another image
|
com.nativelibs4java.opencl.CLEvent |
divide(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
float[] amt,
com.nativelibs4java.opencl.CLImage2D out)
Divide an image by a constant, storing the result in another image
|
<I extends Image<?,I>> |
divide(I in1,
float[] amt)
Divide an image by a constant, returning a new image with the result
|
<I extends Image<?,I>> |
divide(I in1,
I in2)
Divide two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
multiply(com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2)
Multiply two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
multiply(com.nativelibs4java.opencl.CLImage2D in1,
float[] amt)
Multiply an image by a constant, returning a new image with the result
|
com.nativelibs4java.opencl.CLEvent |
multiply(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2,
com.nativelibs4java.opencl.CLImage2D out)
Multiply two images, storing the result in another image
|
com.nativelibs4java.opencl.CLEvent |
multiply(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
float[] amt,
com.nativelibs4java.opencl.CLImage2D out)
Multiply an image by a constant, storing the result in another image
|
<I extends Image<?,I>> |
multiply(I in1,
float[] amt)
Multiply an image by a constant, returning a new image with the result
|
<I extends Image<?,I>> |
multiply(I in1,
I in2)
Multiply two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
subtract(com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2)
Subtract two images, returning a new image with the result
|
com.nativelibs4java.opencl.CLImage2D |
subtract(com.nativelibs4java.opencl.CLImage2D in1,
float[] amt)
Subtract a constant from an image, returning a new image with the result
|
com.nativelibs4java.opencl.CLEvent |
subtract(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
com.nativelibs4java.opencl.CLImage2D in2,
com.nativelibs4java.opencl.CLImage2D out)
Subtract two images, storing the result in another image
|
com.nativelibs4java.opencl.CLEvent |
subtract(com.nativelibs4java.opencl.CLQueue queue,
com.nativelibs4java.opencl.CLImage2D in1,
float[] amt,
com.nativelibs4java.opencl.CLImage2D out)
Subtract a constant from an image, storing the result in another image
|
<I extends Image<?,I>> |
subtract(I in1,
float[] amt)
Subtract a constant from an image, returning a new image with the result
|
<I extends Image<?,I>> |
subtract(I in1,
I in2)
Subtract two images, returning a new image with the result
|
public CLImageArithmetic()
public CLImageArithmetic(com.nativelibs4java.opencl.CLContext context)
context
- the context.public com.nativelibs4java.opencl.CLEvent add(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to addin2
- the second image to addout
- the result imagepublic com.nativelibs4java.opencl.CLEvent add(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, float[] amt, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to addamt
- the constantout
- the result imagepublic com.nativelibs4java.opencl.CLImage2D add(com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2)
in1
- the first image to addin2
- the second image to addpublic com.nativelibs4java.opencl.CLImage2D add(com.nativelibs4java.opencl.CLImage2D in1, float[] amt)
in1
- the first image to addamt
- the constantpublic <I extends Image<?,I>> I add(I in1, I in2)
I
- The type of imagein1
- the first image to addin2
- the second image to addpublic <I extends Image<?,I>> I add(I in1, float[] amt)
I
- The type of imagein1
- the first image to addamt
- the constantpublic com.nativelibs4java.opencl.CLEvent subtract(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to subtractin2
- the second image to subtractout
- the result imagepublic com.nativelibs4java.opencl.CLEvent subtract(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, float[] amt, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to subtractamt
- the constantout
- the result imagepublic com.nativelibs4java.opencl.CLImage2D subtract(com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2)
in1
- the first image to subtractin2
- the second image to subtractpublic com.nativelibs4java.opencl.CLImage2D subtract(com.nativelibs4java.opencl.CLImage2D in1, float[] amt)
in1
- the first image to subtractamt
- the constantpublic <I extends Image<?,I>> I subtract(I in1, I in2)
I
- The type of imagein1
- the first image to subtractin2
- the second image to subtractpublic <I extends Image<?,I>> I subtract(I in1, float[] amt)
I
- The type of imagein1
- the first image to subtractamt
- the constantpublic com.nativelibs4java.opencl.CLEvent multiply(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to multiplyin2
- the second image to multiplyout
- the result imagepublic com.nativelibs4java.opencl.CLEvent multiply(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, float[] amt, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to multiplyamt
- the constantout
- the result imagepublic com.nativelibs4java.opencl.CLImage2D multiply(com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2)
in1
- the first image to multiplyin2
- the second image to multiplypublic com.nativelibs4java.opencl.CLImage2D multiply(com.nativelibs4java.opencl.CLImage2D in1, float[] amt)
in1
- the first image to multiplyamt
- the constantpublic <I extends Image<?,I>> I multiply(I in1, I in2)
I
- The type of imagein1
- the first image to multiplyin2
- the second image to multiplypublic <I extends Image<?,I>> I multiply(I in1, float[] amt)
I
- The type of imagein1
- the first image to multiplyamt
- the constantpublic com.nativelibs4java.opencl.CLEvent divide(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to dividein2
- the second image to divideout
- the result imagepublic com.nativelibs4java.opencl.CLEvent divide(com.nativelibs4java.opencl.CLQueue queue, com.nativelibs4java.opencl.CLImage2D in1, float[] amt, com.nativelibs4java.opencl.CLImage2D out)
queue
- the command queuein1
- the first image to divideamt
- the constantout
- the result imagepublic com.nativelibs4java.opencl.CLImage2D divide(com.nativelibs4java.opencl.CLImage2D in1, com.nativelibs4java.opencl.CLImage2D in2)
in1
- the first image to dividein2
- the second image to dividepublic com.nativelibs4java.opencl.CLImage2D divide(com.nativelibs4java.opencl.CLImage2D in1, float[] amt)
in1
- the first image to divideamt
- the constantpublic <I extends Image<?,I>> I divide(I in1, I in2)
I
- The type of imagein1
- the first image to dividein2
- the second image to divide