How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS...

Post on 12-Jan-2016

226 views 4 download

Tags:

Transcript of How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS...

How to Install ITK ?(Insight Segmentation and Registration Toolkit)

Prepared by:

Hussain Rahman

MS (CS)

1st semester

hussainuom05@gmail.com

Supervised By:

Dr. Engr. Sami Ur Rahman

Department of CS &IT

University of Malakand, KPK, Pakistan

Date: 25.04.2013 1

ObjectivesITK introduction

ITK Installation

How to use ITK?

Reference

2

What is ITK ?

3

Registration

Open Source C++ Toolkit

Medical ImageProcessing

Segmentation

What do I need?ITK Software

CMake

C++ CompilerVisual Studio.NET 2010 etc

4

Getting Started with ITK

5

6

Step 1. Install C++ Compiler

Step 2. Download ITK

7

Download For

MS.Windows

Use the address to download ITK

8

Step 3. Download CMake

9

Step 4. Unzip ITK and CMake

Step 5. Create a DirectoryCreate a clean new directory with the

following three foldersSource BinaryCMake

Copy CMake data we have unzipped to CMake folder

Copy the data inside unzipped itk to source folder

10

Step 6. Run CMakeSelect ITK

SourceSelect ITK

BinaryDisable

Examples Testing

ConfigureSelect

CompilerGenerate Wait …

11

Select Binar

y

Select Sourc

e

Configure after selecting

directories

Generate when configuration completed

Step 7. Build ITK

12

Open ITK.dsw/.sln in ITK binary directoryBuild Wait…

Right click on “All_BUILD”And Build

Step 8. Verify the BuildThe following libraries should be there

ITKCommon ITK IO ITKBasicFilters ITKAlgorithms

ITKNumerics ITKFEM

ITKStatistics ITKMetaIO

Itkpng itkzlib

13

How to Use ITK ?

14

ITK Hello World ExampleVisual studio, CMake and ITK should be installedCreate a new directoryCreate two files in the directory for source and object

code Source binary

Create two files in source which are: CMakeLists.txt Program.cxx

ConfigureBuild Run

15

Step 1. Create a directory with two folders

16

Create source and binary folders in the

directory

Step 2. Add CMakeLists.txt to source

17

Step 3. Add Hello World.cxx to source

18

Step 4. Run CMake

19

Step 5. Generate

20

Step 6. Open HelloWorld.sln

21

R/C and select project from

properties window

Step 7. Compile the project

22

Reference:

23

http://www.itk.org/ItkSoftwareGuide.pdf

http://www.itk.org/Doxygen/html/index.html

http://www.itk.org/HTML/Download.htm

http://www.sci.utah.edu/~cates

Users Mailing List

!!Thanks!!

24