100 likes | 357 Views
Introduction to ITK. Casey Goodlett (with help from others as listed in references). What is ITK. Image Processing and Analysis Toolkit Does not visualization (VTK recommended) Does not include GUI framework Designed for Medical Imaging Applications
E N D
Introduction to ITK Casey Goodlett (with help from others as listed in references)
What is ITK • Image Processing and Analysis Toolkit • Does not visualization (VTK recommended) • Does not include GUI framework • Designed for Medical Imaging Applications • In general algorithms work in N-dimensions
Catalog of ITK Features • Image IO • Image processing • Canny Edge • Hough Transform (lines/ellipsoids) • Variable Conductance Diffusion • Geometry IO/representation/processing (Spatial Objects) • Statistics • Registration/Segmentation • Numerics (VXL) • Optimizers • Finite Element Simulation
Reader Gaussian Writer File File Image Image How code using ITK is written • Mostly in C++ (wrappers exist) • Heavily templated/generic programming like STL • Multi-threading capable • Pipeline architecture • Build Pipeline • Execute pipeline • CMake used as build system
Installing ITK • Download InsightTookit-2.0.1.zip from http://www.itk.org/HTML/Download.htm • Download CMake installer from http://www.cmake.org/HTML/Download.html • Install CMake • Unzip InsightToolkit to folder • Run CMake set PATH\InsightToolkit-2.0.1 as source code folder • Set PATH\InsightToolkit-2.0.1-bin as where to build binaries • Disable BUILD_EXAMPLES and BUILD_TESTING • Click Configure button
Installing ITK (part 2) • Open ITK.dsw in binary build directory • Select Active Configuration to ALL_BUILD – Win32 RelWithDebInfo • Click Build • Wait 15-20 minutes
Build Sample Program • Unzip itkdemo.zip to some folder • Run CMake same as for ITK • For ITK_DIR set binary directory • Open itkdemp.dsw in Visual Studio • Itkdemo.exe <infile> <outfile> <scale>
Useful ITK Components for As 4 • BinaryErodeImageFilter • BinaryDilateImageFilter • BinaryBallStructuringElement • Neighborhood (For custom structuring elements)
References • http://caddlab.rad.unc.edu/Public/InsightIn90Minutes.ppt • ITK CVS Online documentationhttp://www.itk.org/Doxygen/html/index.html • ITK 2.0 (preliminary) Software Guide http://prdownloads.sourceforge.net/itk/ItkSoftwareGuide-2.0.0.pdf?download • http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf • Neurolib tutorial (excellent for research use of ITK) http://www.ia.unc.edu/dev/tutorials/InstallLib/index.htm