Presentation is loading. Please wait.

Presentation is loading. Please wait.

ITK Basic Filters Kitware Inc.. ITK Basic Filters Pixel-wise Arithmetic, Casting, Thresholding Mathematical morphology Noise reduction Gaussian, Anisotropic.

Similar presentations


Presentation on theme: "ITK Basic Filters Kitware Inc.. ITK Basic Filters Pixel-wise Arithmetic, Casting, Thresholding Mathematical morphology Noise reduction Gaussian, Anisotropic."— Presentation transcript:

1 ITK Basic Filters Kitware Inc.

2 ITK Basic Filters Pixel-wise Arithmetic, Casting, Thresholding Mathematical morphology Noise reduction Gaussian, Anisotropic diffusion Derivatives

3 Pixel-wise Intensity Filters

4 Thresholding InsideValue OutsideValue Lower Threshold Upper Threshold Output Value Input Value

5 Thresholding typedef itk::Image ImageType; typedef itk::BinaryThresholdImageFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetLowerThreshold( 50 ); filter->SetUpperThreshold( 150 ); filter->SetOutsideValue( 0 ); filter->SetInsideValue( 255 ); filter->SetInput( reader->GetOutput() ); writer->SetInput( filter->GetOutput() ); writer->Update()

6 Thresholding Outside Value Lower Threshold Upper Threshold Output Value Input Value Ramp

7 Exercise 6

8 Sigmoid Output Maximum Output Minimum Output Value Input Value Beta Alpha

9 Sigmoid typedef itk::Image ImageType; typedef itk::SigmoidImageFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetOutputMinimum( 0 ); filter->SetOutputMaximum( 255 ); filter->SetAlpha( 40 ); // it could be negative filter->SetBeta( 128 ); filter->SetInput( reader->GetOutput() ); writer->SetInput( filter->GetOutput() ); writer->Update()

10 Exercise 7

11 Mathematical Morphology typedef unsigned char PixelType; typedef itk::Image ImageType; typedef itk::BinaryBallStructuringElement StructuringElementType; typedef itk::BinaryDilateImageFilter FilterType; FilterType::Pointer filter = FilterType::New();

12 Mathematical Morphology StructuringElementType element; element.SetRadius( 1 ); element.CreateStructuringElement(); filter->SetKernel( element ); filter->SetDilateValue( 255 ); thresholder->SetInput( reader ->GetOtput( ) ); filter->SetInput( thresholder ->GetOtput( ) ); writer->SetInput( filter ->GetOtput( ) ); writer->Update();

13 Mathematical Morphology File reader dilate writer File reader dilate writer File erode

14 Exercise 8

15 Noise Reduction

16 Gaussian Smoothing typedef unsigned char PixelType; typedef itk::Image ImageType; typedef itk::SmoothingRecursiveGaussianImageFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetSigma( 3.0 ); // sigma is given in millimeters filter->SetNormalizeAcrossScale( true );

17 Gaussian Smoothing smoother->SetInput( reader->GetOtput() ); writer->SetInput( smoother->GetOtput() ); writer->Update(); File reader smooth writer File

18 Exercise 9

19 Anisotropic Diffusion typedef float PixelType; typedef itk::Image ImageType; typedef itk::GradientAnisotropicDiffusionImageFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetTimeStep( 0.05 ); filter->SetNumberOfIterations( 10 ); filter->SetConductanceParameter( 3.0 );

20 Anisotropic Diffusion GradientAnisotropicDiffusionImageFilter CurvatureAnisotropicDiffusionImageFilter CurvatureFlowImageFilter

21 Exercise 10

22 Gradients / Derivatives

23 Gaussian Derivative typedef unsigned char PixelType; typedef itk::Image ImageType; typedef itk::GradientRecursiveGaussianImageFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetSigma( 3.0 ); // sigma is given in millimeters filter->SetNormalizeAcrossScale( true );

24 Gaussian Gradient Scalar Image Gradient Gaussian Vector Image Convolution with Gaussian derivatives

25 Gradient Magnitude typedef unsigned char PixelType; typedef itk::Image ImageType; typedef itk::GradientMagnitudeRecursiveGaussianImageFilter FilterType; FilterType::Pointer filter = FilterType::New(); filter->SetSigma( 3.0 ); // sigma is given in millimeters filter->SetNormalizeAcrossScale( true );

26 Exercise 11

27 Enjoy ITK !


Download ppt "ITK Basic Filters Kitware Inc.. ITK Basic Filters Pixel-wise Arithmetic, Casting, Thresholding Mathematical morphology Noise reduction Gaussian, Anisotropic."

Similar presentations


Ads by Google