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

24
How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester [email protected] Supervised By: Dr. Engr. Sami Ur Rahman Department of CS &IT University of Malakand, KPK, Pakistan Date: 25.04.2013 1

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

Page 1: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

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

Prepared by:

Hussain Rahman

MS (CS)

1st semester

[email protected]

Supervised By:

Dr. Engr. Sami Ur Rahman

Department of CS &IT

University of Malakand, KPK, Pakistan

Date: 25.04.2013 1

Page 2: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

ObjectivesITK introduction

ITK Installation

How to use ITK?

Reference

2

Page 3: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

What is ITK ?

3

Registration

Open Source C++ Toolkit

Medical ImageProcessing

Segmentation

Page 4: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

What do I need?ITK Software

CMake

C++ CompilerVisual Studio.NET 2010 etc

4

Page 5: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Getting Started with ITK

5

Page 6: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

6

Step 1. Install C++ Compiler

Page 7: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 2. Download ITK

7

Download For

MS.Windows

Use the address to download ITK

Page 8: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

8

Step 3. Download CMake

Page 9: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

9

Step 4. Unzip ITK and CMake

Page 10: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

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

Page 11: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

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

Page 12: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 7. Build ITK

12

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

Right click on “All_BUILD”And Build

Page 13: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 8. Verify the BuildThe following libraries should be there

ITKCommon ITK IO ITKBasicFilters ITKAlgorithms

ITKNumerics ITKFEM

ITKStatistics ITKMetaIO

Itkpng itkzlib

13

Page 14: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

How to Use ITK ?

14

Page 15: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

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

Page 16: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 1. Create a directory with two folders

16

Create source and binary folders in the

directory

Page 17: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 2. Add CMakeLists.txt to source

17

Page 18: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 3. Add Hello World.cxx to source

18

Page 19: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 4. Run CMake

19

Page 20: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 5. Generate

20

Page 21: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 6. Open HelloWorld.sln

21

R/C and select project from

properties window

Page 22: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

Step 7. Compile the project

22

Page 23: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

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

Page 24: How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester hussainuom05@gmail.com Supervised.

!!Thanks!!

24