blogtng:2010-06-17:imaris_-_java
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
blogtng:2010-06-17:imaris_-_java [2010/06/17 15:43] – created kota | blogtng:2010-06-17:imaris_-_java [2020/11/26 09:11] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
===== Imaris - Java ===== | ===== Imaris - Java ===== | ||
+ | |||
+ | Here is some notes on accessing Imaris contents from Java. Since this example uses COM interface via jacob.dll, platform is limited to windows. | ||
==== Setup ==== | ==== Setup ==== | ||
Line 5: | Line 8: | ||
There is a breif description in | There is a breif description in | ||
http:// | http:// | ||
- | <quote> | + | <blockquote> |
In order to run the JACOB demo, the Java COM Bridge needs to be installed (put the jacob.dll into /bin and the jacob.jar into /lib/ext). The demo does similar things like the demos above: Start Imaris, load a Dataset, perform some action with the image, and terminate Imaris. Many thanks for providing the source code to Volker Bäcker, Monpellier RIO Imaging. | In order to run the JACOB demo, the Java COM Bridge needs to be installed (put the jacob.dll into /bin and the jacob.jar into /lib/ext). The demo does similar things like the demos above: Start Imaris, load a Dataset, perform some action with the image, and terminate Imaris. Many thanks for providing the source code to Volker Bäcker, Monpellier RIO Imaging. | ||
- | </quote> | + | </blockquote> |
So accessing Imaris from Java requires Jacob pakage (Java - COM Bridge, http:// | So accessing Imaris from Java requires Jacob pakage (Java - COM Bridge, http:// | ||
- | <quote> | + | <blockquote> |
Jacob.jar relies on a DLL file that it loads off of the library path or classpath. This means that you must either copy the appropriate jacob ddll into your path or use VM options to add directory holding jacob dll to the path. Prior to 1.14M6, the jacob DLL name was alwasy " | Jacob.jar relies on a DLL file that it loads off of the library path or classpath. This means that you must either copy the appropriate jacob ddll into your path or use VM options to add directory holding jacob dll to the path. Prior to 1.14M6, the jacob DLL name was alwasy " | ||
jacob< | jacob< | ||
- | </quote> | + | </blockquote> |
There actually are following two .dll files in the package. | There actually are following two .dll files in the package. | ||
Line 27: | Line 30: | ||
- | Example java code by Volker Bäcker is available in the Bitplane linked above. I downloaded the java file made it testable in Eclipse (simply add jacob.jar file in the build path). | + | Example java code by Volker Bäcker is available in the Bitplane |
=== Start button: starts up Imaris === | === Start button: starts up Imaris === | ||
Line 48: | Line 51: | ||
" | " | ||
http:// | http:// | ||
+ | |||
+ | ActiveXComponent is a class provided in Jacob package, and accessing Imaris functions are mostly done through the method of this class. Java doc is at: | ||
+ | http:// | ||
=== text field & " | === text field & " | ||
Line 59: | Line 65: | ||
</ | </ | ||
- | imarisapplication is an instance of ActiveXComponent constructed above. " | + | imarisapplication is an instance of ActiveXComponent constructed above. |
+ | |||
+ | http:// | ||
+ | |||
+ | " | ||
http:// | http:// | ||
blogtng/2010-06-17/imaris_-_java.1276789394.txt.gz · Last modified: 2016/05/24 12:46 (external edit)