How to Install ITK ? (Insight Segmentation and Registration Toolkit) Prepared by: Hussain Rahman MS (CS) 1 st semester Supervised By: Dr. Engr. Sami Ur Rahman Department of CS &IT University of Malakand, KPK, Pakistan Date:
Objectives Objectives ITK introduction ITK Installation How to use ITK? Reference 2
What is ITK ? 3 Registration Open Source C++ Toolkit Medical Image Processing Segmentation
What do I need? What do I need? ITK Software CMake C++ Compiler Visual Studio.NET 2010 etc 4
Getting Started with ITK 5
Step 1. Install C++ Compiler 6
Step 2. Download ITK 7 Download For MS.Windows Use the address to download ITK
Step 3. Download CMake 8
Step 4. Unzip ITK and CMake 9
Step 5. Create a Directory Create a clean new directory with the following three folders Source Binary CMake Copy CMake data we have unzipped to CMake folder Copy the data inside unzipped itk to source folder 10
Step 6. Run CMake Select ITK Source Select ITK Binary Disable Examples Testing Configure Select Compiler Generate Wait … 11 Select Binary Select Source Generate when configuration completed
Step 7. Build ITK 12 Open ITK.dsw/.sln in ITK binary directory Build Wait… Right click on “All_BUILD” And Build
Step 8. Verify the Build The 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 Example Visual studio, CMake and ITK should be installed Create a new directory Create two files in the directory for source and object code Source binary Create two files in source which are: CMakeLists.txt Program.cxx Configure Build 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: Reference: Users Mailing List
!! Thanks!! 24