These are Jupyter Notebooks, an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text.
To run cells in the notebook, press shift + enter.
For more information, see the Notebook Help
import itk
from itkwidgets import view
file_name = 'data/brainweb165a10f17.mha'
image = itk.imread(file_name, itk.ctype('float'))
view(image, slicing_planes=True, gradient_opacity=0.8, ui_collapsed=True)
Viewer(gradient_opacity=0.8, rendered_image=<itkImagePython.itkImageF3; proxy of <Swig Object of type 'itkImag…
# Smooth the image
smoothed = itk.curvature_flow_image_filter(image,
number_of_iterations=6,
time_step=0.005)
view(smoothed, slicing_planes=True, gradient_opacity=0.8, ui_collapsed=True)
Viewer(gradient_opacity=0.8, rendered_image=<itkImagePython.itkImageF3; proxy of <Swig Object of type 'itkImag…
# Segment the white matter with a 3D region-growing algorithm
confidence_connected = itk.ConfidenceConnectedImageFilter.New(smoothed)
confidence_connected.SetMultiplier(2.5)
confidence_connected.SetNumberOfIterations(5)
confidence_connected.SetInitialNeighborhoodRadius(2)
confidence_connected.SetReplaceValue(255)
confidence_connected.AddSeed([118, 133, 92])
confidence_connected.AddSeed([63, 135, 94])
confidence_connected.AddSeed([63, 157, 90])
confidence_connected.AddSeed([111, 150, 90])
confidence_connected.AddSeed([111, 50, 88])
confidence_connected.Update()
view(confidence_connected, ui_collapsed=True, cmap='BuPu', shadow=False, annotations=False)
Viewer(annotations=False, cmap='BuPu', gradient_opacity=0.22, rendered_image=<itkImagePython.itkImageSS3; prox…
In 1999, the US National Institute of Health’s (NIH) National Library of Medicine (NLM) started a project to support the Visible Human Project.
ITK contributors locations for the 4.8 and 4.9 releases.
ITK Software Guide: https://www.itk.org/ItkSoftwareGuide.pdf
Discourse Discussion: https://discourse.itk.org
Sphinx Examples: https://www.itk.org/ITKExamples
Examples/
directory in the ITK repository
Wiki Examples: http://www.itk.org/Wiki/ITK/Examples
Kitware: https://www.kitware.com/