I
- Type of Image
being processedpublic class CLImageProcessor<I extends Image<?,I>> extends Object implements ImageProcessor<I>
ImageProcessor
for GPGPU accelerated processing.Modifier and Type | Field and Description |
---|---|
protected com.nativelibs4java.opencl.CLContext |
context |
protected com.nativelibs4java.opencl.CLKernel |
kernel |
Constructor and Description |
---|
CLImageProcessor(com.nativelibs4java.opencl.CLContext context,
com.nativelibs4java.opencl.CLProgram program)
Construct with the given OpenCL program
|
CLImageProcessor(com.nativelibs4java.opencl.CLContext context,
InputStream src)
Construct by reading the program source from a stream
|
CLImageProcessor(com.nativelibs4java.opencl.CLContext context,
String... programSrcs)
Construct with the given OpenCL program source, given in
the form of
String s. |
CLImageProcessor(com.nativelibs4java.opencl.CLContext context,
URL srcUrl)
Construct with the program sourcecode at the given URL.
|
CLImageProcessor(com.nativelibs4java.opencl.CLKernel kernel)
Construct with the given OpenCL kernel
|
CLImageProcessor(com.nativelibs4java.opencl.CLProgram program)
Construct with the given OpenCL program
|
CLImageProcessor(InputStream src)
Construct by reading the program source from a stream
|
CLImageProcessor(String... programSrcs)
Construct with the given OpenCL program source, given in
the form of
String s. |
CLImageProcessor(URL srcUrl)
Construct with the program sourcecode at the given URL.
|
protected com.nativelibs4java.opencl.CLContext context
protected com.nativelibs4java.opencl.CLKernel kernel
public CLImageProcessor(com.nativelibs4java.opencl.CLProgram program)
program
- the OpenCL programpublic CLImageProcessor(String... programSrcs)
String
s.programSrcs
- the source of the programpublic CLImageProcessor(URL srcUrl) throws IOException
srcUrl
- the urlIOException
public CLImageProcessor(InputStream src) throws IOException
src
- the source streamIOException
public CLImageProcessor(com.nativelibs4java.opencl.CLContext context, com.nativelibs4java.opencl.CLProgram program)
context
- the OpenCL context to useprogram
- the OpenCL programpublic CLImageProcessor(com.nativelibs4java.opencl.CLContext context, String... programSrcs)
String
s.context
- the OpenCL context to useprogramSrcs
- the source of the programpublic CLImageProcessor(com.nativelibs4java.opencl.CLKernel kernel)
kernel
- the OpenCL kernel to usepublic CLImageProcessor(com.nativelibs4java.opencl.CLContext context, URL srcUrl) throws IOException
context
- the OpenCL context to usesrcUrl
- the urlIOException
public CLImageProcessor(com.nativelibs4java.opencl.CLContext context, InputStream src) throws IOException
context
- the OpenCL context to usesrc
- the source streamIOException
public void processImage(I image)
ImageProcessor
Image.internalAssign(Image)
.processImage
in interface ImageProcessor<I extends Image<?,I>>
image
- The image to process in place.