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
Strings. |
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
Strings. |
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)
Strings.programSrcs - the source of the programpublic CLImageProcessor(URL srcUrl) throws IOException
srcUrl - the urlIOExceptionpublic CLImageProcessor(InputStream src) throws IOException
src - the source streamIOExceptionpublic 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)
Strings.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 urlIOExceptionpublic CLImageProcessor(com.nativelibs4java.opencl.CLContext context, InputStream src) throws IOException
context - the OpenCL context to usesrc - the source streamIOExceptionpublic void processImage(I image)
ImageProcessorImage.internalAssign(Image).processImage in interface ImageProcessor<I extends Image<?,I>>image - The image to process in place.