https://github.com/imagej/imagej-itk
ITK integration for ImageJ
https://github.com/imagej/imagej-itk
Last synced: about 1 year ago
JSON representation
ITK integration for ImageJ
- Host: GitHub
- URL: https://github.com/imagej/imagej-itk
- Owner: imagej
- License: other
- Created: 2015-09-09T13:53:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-06-14T20:52:58.000Z (about 4 years ago)
- Last Synced: 2025-04-19T02:23:15.576Z (about 1 year ago)
- Language: Java
- Size: 67.4 KB
- Stars: 8
- Watchers: 29
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://github.com/imagej/imagej-itk/actions/workflows/build-main.yml)
# imagej-itk
This is a work in progress repository that demostrates how to expose [Insight
Toolkit](http://itk.org) functionality to [ImageJ2](http://imagej.net).
Currently, the repository demonstrates how to expose a few
[SimpleITK](http://simpleitk.org) filters as [ImageJ2 Ops](http://imagej.net/Ops),
[ImageJ2
Commands](https://github.com/imagej/imagej-tutorials/tree/master/simple-commands), and
[ImageJ2 Parameterized
Scripts](https://imagej.github.io/presentations/2015-09-04-imagej2-scripting/#/)
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.
Working example
---------------
Try this Jython script in ImageJ's
[Script Editor](http://imagej.net/Script_Editor)!
```python
# @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);
```
## Build Instructions ##
To get started, install [Maven 3](http://maven.apache.org/), and run:
```
mvn
```
from the repository root directory.
### Bundling Native Libraries ###
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](http://www.itk.org/Wiki/SimpleITK/GettingStarted#Build_It_Yourself) for information on custom builds.