source: branches/maven/projects/opencl-decon/.classpath @ 7501

Revision 7501, 1.4 KB checked in by rlentz, 9 years ago (diff)

Added a readme

This code was developed to show how to use JOCL to leverage OpenCL within ImageJ both on the machine
ImageJ is running from as well as remotely, using binary web services.

src - Java and OpenCL source files
sourcedata - PSF and 3D data used as a very small sample data set for the FHT3D Example.
lib - libraries needed for classes using JOCL, ImageJ, and Hessian 4.0.7

There are several components available in this project to demonstrate various capabilities for use within ImageJ.

Please ensure you have installed OpenCL and successfully run at least one included GUI based example

Setup: Install OpenCL for your host machine.

To OpenCL files from Java we use JOCL which enables development of OpenCL plugins for ImageJ.

Look in the source (src) directory and note the location of and These files are referenced at runtime and
compiled for execution by an OpenCL enabled device.
Start with and run as Java Application with VM Arguments -Xmx1024m.
The program will load an image from a web server, process it locally using OpenCL, and display the results. This action
acts as a test/control gate to ensure configuration of JOCL and OpenCL native libraries. Modify this example
to suite your needs, but be sure JOCL and OpenCL are working correctly before proceeding.

Working with ImageJ: If developing an ImageJ plugin using OpenCL realize that the runtime logic can be placed in the run(String) method.
JOCL jars and native libraries for the target platform will need to be available for JOCL to make calls into the OpenCL libraries installed on the runtime host.

Now that you have called OpenCL from Java on your platform. You might have a compute intensive portion of
a processing pipeline that you may wish to port to OpenCL. The class demonstrates calling OpenCL to perform
a portion of the processing required from within a complex implementation.

Finally, the need may arise where the GPU compute capabilities you wish to leverage are not on the same computer that ImageJ is running on. The FHTEJBService and
Iterative_Deconvolve_3D_WS classes demonstrate how to remotely serve up the functionality leveraging standard, open source J2EE technologies.

1<?xml version="1.0" encoding="UTF-8"?>
3        <classpathentry kind="src" path="src"/>
4        <classpathentry kind="src" path="sourcedata"/>
5        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
6        <classpathentry kind="lib" path="lib/gluegen-rt.jar">
7                <attributes>
8                        <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="OpenCLIterative3DDeconvolution/native"/>
9                </attributes>
10        </classpathentry>
11        <classpathentry kind="lib" path="lib/ij.jar" sourcepath="/home/loci/workspace/imagej/src/ij"/>
12        <classpathentry kind="lib" path="lib/jocl.jar" sourcepath="/home/loci/workspace/jogamp/jocl">
13                <attributes>
14                        <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="OpenCLIterative3DDeconvolution/native"/>
15                </attributes>
16        </classpathentry>
17        <classpathentry kind="lib" path="lib/jogl.all.jar"/>
18        <classpathentry kind="lib" path="lib/nativewindow.all.jar">
19                <attributes>
20                        <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="OpenCLIterative3DDeconvolution/native"/>
21                </attributes>
22        </classpathentry>
23        <classpathentry kind="lib" path="lib/newt.all.jar"/>
24        <classpathentry kind="lib" path="lib/JOCL-0.1.4-beta1-bin-apple-x86_64/hessian-4.0.7.jar" sourcepath="lib/JOCL-0.1.4-beta1-bin-apple-x86_64/hessian-4.0.7-src.jar"/>
25        <classpathentry kind="output" path="bin"/>
Note: See TracBrowser for help on using the repository browser.