Insight Toolkit Ubuntu Repository
I have put together a Ubuntu repository for the Insight Toolkit (ITK). This repository provides insighttoolkit packages for Ubuntu 7.10 (gutsy gibbon) and 8.04 (hardy heron). 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, if you have previously added my repository, you need to edit your '/etc/apt/sources.list' file. Delete or comment any line that contains 'apt.paulnovo.org'.
Now, download the correct sources.list file for your distribution
-
Ubuntu 7.10 "Gutsy Gibbon":
sudo wget http://apt.paulnovo.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/paulnovo.list -
Ubuntu 8.04 "Hardy Heron":
sudo wget http://apt.paulnovo.org/sources.list.d/hardy.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 who are upgrading from gutsy to hardy, 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.
-
Ubuntu 7.10 "Gutsy Gibbon":
sudo apt-get install libinsighttoolkit3.4 python-insighttoolkit -
Ubuntu 8.04 "Hardy Heron":
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
Thats it! Please look at my other Tips & HowTos for examples.
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!
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.
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.