Thilina's Blog

I might be wrong, but…

Setting up VTK and ITK environments for Ubuntu

Visualization Toolkit which is known as VTK is an open source software system for image processing, visualization and 3D computer graphics which is also vastly used in biomedical image processing and visualization. VTK is mainly consists of C++ class library and several interpreted interface layers. ITK is Insight Segmentation and Registration toolkit which is also open source and a cross platform which provides an extensive software tools for image analysis. In this article I am going to share my experience on how to install VTK and ITK environments on Ubuntu.

Install CMake

As first step you need to download and install CMAKE in your computer. Cmake can download from following URL,

http://www.cmake.org/cmake/resources/software.html

clip_image002

Extract the downloaded file. Then go to the extracted folder using Terminal.

clip_image004

Next type

./configure

on terminal.

clip_image006

After running configuration type

make

in the terminal, after its make process type

sudo make install

.

clip_image008

If you typed

make install

instead of

sudo make install

at the end of the process it will show an error of writing permission to the disk.  After this process installation of CMake is complete.

Install VTK

Download VTK and VTK data from VTK web page.

URL: http://www.vtk.org/VTK/resources/software.html

clip_image010

Then extract vtk and vtk data files.

Goto vtk folder using Terminal and type

ccmake .

clip_image011

After processing it will prompt a configuration option, press ‘c‘ to configure.

clip_image013

In some cases VTK data root may not be detected by the installer, then manually set the VTK data source as the extracted folder of VTK_data as below.vtk_3

Edit its settings as required and press c, if generate option (g) is not present press c again.

clip_image014

Press g to generate.

clip_image016

Type

make

, this process will take some considerable time (maybe hours).

clip_image018

Finally type

sudo make install

for complete the installation.

Install ITK

This process is also similar to installing VTK. Following are the steps for installing ITK on Ubuntu.

Download ITK files from ITK web site.

Extract all ITK files.

Create folder named ITK.

Go to ITK folder from Terminal.

Type

ccmake . /home/thilina/vtk_itk/InsightToolkit-4.3.1 (location where ITK file extracted)

Press c to configure the ITK setup. After configuration process press c again.

Press g to generate and exit from configuration window.

Type

make

for make process. Then type

sudo make install

For final step of installation. Then ITK installation is complete.

Hope you got a brief step by step idea on how to install VTK and ITK on Ubuntu Environment. Thank you very much for reading.

2013 February 9 - Posted by | Biomedical, C++, Image Processing, ITK, Ubuntu, VTK | , , , ,

7 Comments »

  1. Thank you! Helped me a lot!!

    Comment by Bruna S.M. | 2013 June 10 | Reply

  2. clear, easy to read and it helped me🙂 thanks

    Comment by alba | 2013 June 20 | Reply

  3. Why would I still get a “The program ‘ccmake’ is currently not installed.” after “sudo make install” process?

    Comment by Jerry | 2013 September 17 | Reply

  4. thanks a lot !

    Comment by mysunshineself | 2013 September 28 | Reply

  5. Yes, this is really good article. I have installed VTK 5.8.0 on Mint 16 according to this guide. Thanks.

    Comment by Siwei | 2014 October 23 | Reply

  6. But I wonder how to start. Could you give me some instructions on how to plot a DEM data in VTK?

    Comment by Siwei | 2014 October 23 | Reply

  7. Thank you very much ….you helped me in tons …. I successfully installed ITK…

    Comment by Poornachandra Sandur | 2016 November 27 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: