Insight Toolkit Ubuntu Repository

I have put together a Ubuntu repository for the Insight Toolkit (ITK). This repository provides insighttoolkit packages for Ubuntu 8.04 (hardy heron), 8.10 (intrepid ibex), 9.04 (Jaunty Jackalope), 9.10 (Karmic Koala), and 10.04 (Lucid Lynx). Additionally, I have created a package for the python wrappings of ITK (WrapITK). Similar to the VTK wrapping already in the Ubuntu repository (python-vtk).

Add My Repository

Fist, download the correct sources.list file for your distribution

  • Ubuntu 8.04 LTS “Hardy Heron”:
    sudo wget http://apt.paulnovo.org/sources.list.d/\
    hardy.list -O /etc/apt/sources.list.d/paulnovo.list
  • Ubuntu 8.10 “Intrepid Ibex”:
    sudo wget http://apt.paulnovo.org/sources.list.d/\
    intrepid.list -O /etc/apt/sources.list.d/paulnovo.list
  • Ubuntu 9.04 “Jaunty Jackalope”:
    sudo wget http://apt.paulnovo.org/sources.list.d/\
    jaunty.list -O /etc/apt/sources.list.d/paulnovo.list
  • Ubuntu 9.10 “Karmic Koala”:
    sudo wget http://apt.paulnovo.org/sources.list.d/\
    karmic.list -O /etc/apt/sources.list.d/paulnovo.list
  • Ubuntu 10.04 LTS”Lucid Lynx”:
    sudo wget http://apt.paulnovo.org/sources.list.d/\
    lucid.list -O /etc/apt/sources.list.d/paulnovo.list

Then, install my gpg public key and update apt
wget http://apt.paulnovo.org/549EC7E2.key -O- | sudo apt-key add -
sudo apt-get update

If you are upgrading distributions (ie hardy to intrepid), type the following and you should be all set. If this is fresh install, skip this and continue to the next section.
sudo apt-get dist-upgrade
sudo apt-get install insighttoolkit

Install Packages

Apt-get is now aware of the packages in my repository. Before we can install anything, be careful and remove old versions of ITK.
sudo apt-get remove libinsighttoolkit3.0

Just install all the new packages. Be forewarned, the python-insighttoolkit is rather large, about 70MB download and 400MB installed.
sudo apt-get install insighttoolkit python-insighttoolkit

For extra functionality install the python-insighttoolkit-extras package. This package provides easy conversion between ITK images and numpy, plus connectors between ITK and VTK. This package will install VTK though, which is another big install.
sudo apt-get install python-insighttoolkit-extras

If you would like the python docstring documentation I describe here, just install the insighttoolkit-doc package.
sudo apt-get install insighttoolkit-doc

Thats it! Please look at my other Tips & HowTos for examples.

No Trackbacks

You can leave a trackback using this URL: http://www.paulnovo.org/repository/trackback

12 Comments

  1. Anonymous

    Can you make available the build tools that create these packages?

    I’m already using python-vtk, will your packages clash with it?

    Thanks for the resource!

    Posted May 5, 2008 at 10:16 pm | Permalink
  2. paul

    All of the source and debian build settings are available in my repository. If you are in ubuntu or debian, just add my repositories as described in this article then:

    apt-get source insighttoolkit
    apt-get source python-insighttoolkit-extras

    This will download all the source to the current directory. There is a good intro on how to make the packages from this source here:

    https://wiki.ubuntu.com/PackagingGuide/Complete

    Good luck, and if you need help send me an email.

    Posted May 6, 2008 at 10:21 am | Permalink
  3. paul

    In fact, python-vtk is a dependancy of my python-insighttoolkit-extras package. Check out my tutorial Getting Started with Python-InsightToolkit on how to communicate between itk and vtk in python.

    Posted May 6, 2008 at 10:26 am | Permalink
  4. Anonymous

    Hi,
    does anybody have any tips how to get eclipse or netbeans to autocomplete the itk python functions?
    ipython2.5 on ubuntu jaunty works fine, and does autocomplete itk stuff: for instance writing:
    imageReader = itk.ImageFileR[tab] expands to ..Reader, however this never happens in eclipse or netbeans, even though they autocomplete regular python stuff.

    Posted June 3, 2009 at 7:46 am | Permalink
  5. Anonymous

    Hi,
    I used your packages in Intrepid with much success – thanks very much. I tried installing them in Jaunty, which successful installed, but I can’t import the module (”import itk”) in ipython. It states there is no module called itk. Is there something simple I’m missing or will the intrepid package just not work in jaunty?

    Thanks.

    Posted April 27, 2009 at 1:09 am | Permalink
  6. paul

    I am putting together the Jaunty packages at the moment. The reason itk does not work in jaunty is because of the switch from python 2.5 to 2.6. Python2.5 should still be installed on you system, and if you start python2.5 instead of python, the itk packages are available.

    To get itk working in python 2.6 is a simple fix, but I would recommend just waiting for me to release packages for jaunty.

    Posted April 29, 2009 at 1:33 pm | Permalink
  7. Anonymous

    Hi. A real beginner here I’m afraid. I installed ITK via your repository.

    I’m now trying to run the first program from the ITK documentation.

    The documentation says I must specify the directory where ITK is built and when I try and run the Cmake file I get “ITK not found”.

    Can you let me know what directory I should use?

    Thanks

    Ben

    Posted July 16, 2009 at 1:22 pm | Permalink
  8. Anonymous

    This is working well for me in Jaunty. I’m using the python ITK+VTK setup to quickly test and experiment. I then write it in C++ for the main program. Thanks for the packages, as the standard distro packages don’t quite cut it!

    Posted July 22, 2009 at 2:56 pm | Permalink
  9. paul

    To be able to build your own ITK projects, you need the dev package. This should automatically set everything up so CMake can find everything. To install the dev package just type in the following:

    sudo apt-get install libinsighttoolkit-dev

    Posted July 23, 2009 at 10:07 am | Permalink
  10. Stefan

    I’m trying to build an application using the itk zlib. Unfortunately I’can’t find the corresponding header file itk_zlib.h with your build version of itk 3.16. Am I missing something?

    Posted January 10, 2010 at 10:15 am | Permalink
  11. paul

    @Stefan: itk_zlib.h should be in the libinsighttoolkit-dev package. If you run

    sudo apt-get install libinsighttoolkit-dev

    itk_zlib.h should be in /usr/include/InsightToolkit/Utilities/

    Posted January 17, 2010 at 8:16 am | Permalink
  12. Fabrizio

    very good job, thank you very much!!

    Posted June 25, 2010 at 11:41 am | Permalink

Post a Comment

Your email is never shared. Required fields are marked *

*
*