This is a work in progress repository that demostrates how to expose Insight Toolkit functionality to ImageJ2.
Currently, the repository demonstrates how to expose a few SimpleITK filters as ImageJ2 Ops, ImageJ2 Commands, and ImageJ2 Parameterized Scripts
The project includes converters which translate ImageJ2 Datasets to the SimpleITK Image format. The ImageJ2 scripting framework automatically calls the converters when a script requires a SimpleITK Image.
Try this Jython script in ImageJ's Script Editor!
# @org.itk.simple.Image image
# @OUTPUT Dataset output
from org.itk.simple import SmoothingRecursiveGaussianImageFilter
itkGauss = SmoothingRecursiveGaussianImageFilter();
# call itk rl using simple itk wrapper
output = itkGauss.execute(image, 3.0, False);To get started, install Maven 3, and run:
mvn
from the repository root directory.
You will need to add the SimpleITKJava native library appropriate for your operating system and architecture to the java.library.path. See the SimpleITK documentation for information on custom builds.