Let's run vtk & opencv program by run-time dynamic code compilation. vtkJavaDesigner makes easy to develop vtk opencv java programs in the small text window.
VTK native libraries and wrappers should be installed on the computer. OpenCV native libraries should be installed on the computer.
Under the system environment setting, add the vtk library path to LD_LIBRARY_PATH(for linux) or DYLD_LIBRARY_PATH(for Mac OSX).
(Linux) LD_LIBRARY_PATH=/usr/local/VTK/VTKBuild/lib:/usr/local/opencv/build/lib
(Mac OSX) DYLD_LIBRARY_PATH=/Users/user/Projects/git-projects/VTK/VTKBuild/lib:/Users/user/Projects/git-projects/opencv/build/lib
In order to compile VTK in Mac OSX, refer http://stackoverflow.com/questions/17329258/how-to-install-vtk-6-1-for-osx-10-8-with-cocoa-xcode-support
For java opencv, refer http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html
- Code completion
Currently, there is one sample code in /samples folder.
- WarpView.java provides 3D representation of clown.tiff pixel intensity. In order to run this script, please, set the working directory to your cloned vtkJavaDesigner.
- When you use jdk8, fiji can complain with the wrong compiled version. In such a case, please, remove
javac-1.6.0.24-ubuntu-fiji2.jar
andtools-1.4.2.jar
fromFiji.app/jars
(refer fiji/fiji#119).
- Robert Futrell's RSyntexTextArea, AutoComplete and RSTALanguageSupport are used.
- Peter Lawrey's dynamic code injection codes are used.
- Werner Randelshofer's ExtensionFileFilter codes are used.