Difference between revisions of "ITK"

(Developer-resources)
(What's on the update site?: fix parameters link)
Line 20: Line 20:
  
 
* SimpleITK 0.90 is distributed with this update.  After update all SimpleITK classes can be called from the script editor.  
 
* SimpleITK 0.90 is distributed with this update.  After update all SimpleITK classes can be called from the script editor.  
* When using <code>@itkImage</code> [[Script_paramters|parameters]] in scripts, the active ImageJ <code>Dataset(s)</code> will be converted to SimpleITK <code>Image(s)</code>
+
* When using <code>@itkImage</code> [[Script_parameters|parameters]] in scripts, the active ImageJ <code>Dataset(s)</code> will be converted to SimpleITK <code>Image(s)</code>
 
* There are several templates in the [[Scripting|script editor]] demonstrating ITK use.  The following example shows how to perform Otsu multilevel threshold using SimpleITK
 
* There are several templates in the [[Scripting|script editor]] demonstrating ITK use.  The following example shows how to perform Otsu multilevel threshold using SimpleITK
  

Revision as of 11:01, 13 November 2015

Itk-logo.png
ITK (ITK)
Author Insight Software Consortium
Maintainer Insight Software Consortium
Source on GitHub
Development status Active
Website http://itk.org/


The Insight Toolkit (ITK) is a cross-platform, open-source application development framework widely used for the development of image segmentation and image registration programs.

ITK integration with ImageJ

Although ITK is a C++ application, many ITK functions are available in ImageJ through the SimpleITK Java compatibility layer.

Enabling this functionality in ImageJ is simply a matter of turning on the ImageJ-ITK update site. Note that this will trigger a large download, as it requires the SimpleITK native library (up to a few hundred MB).

What's on the update site?

  • SimpleITK 0.90 is distributed with this update. After update all SimpleITK classes can be called from the script editor.
  • When using @itkImage parameters in scripts, the active ImageJ Dataset(s) will be converted to SimpleITK Image(s)
  • There are several templates in the script editor demonstrating ITK use. The following example shows how to perform Otsu multilevel threshold using SimpleITK
# @itkImage
# @OUTPUT Dataset output

from org.itk.simple import OtsuMultipleThresholdsImageFilter

otsu = OtsuMultipleThresholdsImageFilter()

# call otsu using simple itk wrapper
output = otsu.execute(image, 2, 0, 255, True)

Developer-resources