VMTK
Loading...
Searching...
No Matches
vtkvmtkNormalizeImageFilter Class Reference

Wraps itk::NormalizeImageFilter. More...

#include <vtkvmtkNormalizeImageFilter.h>

Inheritance diagram for vtkvmtkNormalizeImageFilter:
[legend]
Collaboration diagram for vtkvmtkNormalizeImageFilter:
[legend]

Public Types

typedef vtkSimpleImageToImageFilter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkNormalizeImageFilter * NewInstance () const

Static Public Member Functions

static vtkvmtkNormalizeImageFilter * New ()
static int IsTypeOf (const char *type)
static vtkvmtkNormalizeImageFilter * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkNormalizeImageFilter ()
 ~vtkvmtkNormalizeImageFilter ()
virtual void SimpleExecute (vtkImageData *input, vtkImageData *output) override

Detailed Description

Wraps itk::NormalizeImageFilter.

vtkvmtkNormalizeImageFilter rescales the intensities of the input image so that the resulting image has zero mean and unit variance, using the image's statistical mean and standard deviation (as opposed to a fixed intensity range as in min/max rescaling). It is the filter behind the vmtkimagenormalize pype script, used to bring images from different scanners/protocols to a comparable intensity scale before further processing (e.g. before feature extraction or level set segmentation). Like the other single-purpose ITK wrappers in this module, it is a thin vtkSimpleImageToImageFilter: SimpleExecute() converts the VTK input to a float itk::Image, runs itk::NormalizeImageFilter, and converts the result back to vtkImageData. Has no configurable parameters beyond the input image itself.

Definition at line 46 of file vtkvmtkNormalizeImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSimpleImageToImageFilter vtkvmtkNormalizeImageFilter::Superclass

Definition at line 50 of file vtkvmtkNormalizeImageFilter.h.

Constructor & Destructor Documentation

◆ vtkvmtkNormalizeImageFilter()

vtkvmtkNormalizeImageFilter::vtkvmtkNormalizeImageFilter ( )
protected

Definition at line 37 of file vtkvmtkNormalizeImageFilter.cxx.

38{
39}

◆ ~vtkvmtkNormalizeImageFilter()

vtkvmtkNormalizeImageFilter::~vtkvmtkNormalizeImageFilter ( )
protected

Definition at line 41 of file vtkvmtkNormalizeImageFilter.cxx.

42{
43}

Member Function Documentation

◆ New()

vtkvmtkNormalizeImageFilter * vtkvmtkNormalizeImageFilter::New ( )
static

◆ IsTypeOf()

int vtkvmtkNormalizeImageFilter::IsTypeOf ( const char * type)
static

◆ IsA()

virtual int vtkvmtkNormalizeImageFilter::IsA ( const char * type)
virtual

◆ SafeDownCast()

vtkvmtkNormalizeImageFilter * vtkvmtkNormalizeImageFilter::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkNormalizeImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkNormalizeImageFilter * vtkvmtkNormalizeImageFilter::NewInstance ( ) const

◆ SimpleExecute()

void vtkvmtkNormalizeImageFilter::SimpleExecute ( vtkImageData * input,
vtkImageData * output )
overrideprotectedvirtual

Definition at line 45 of file vtkvmtkNormalizeImageFilter.cxx.

46{
47 typedef float PixelType;
48 const int Dimension = 3;
49 typedef itk::Image<PixelType, Dimension> ImageType;
50
51 ImageType::Pointer inImage = ImageType::New();
52
54
55 typedef itk::NormalizeImageFilter<ImageType, ImageType> NormalizeFilterType;
56
57 NormalizeFilterType::Pointer imageFilter = NormalizeFilterType::New();
58 imageFilter->SetInput(inImage);
59 imageFilter->Update();
60
61 ImageType::Pointer outputImage = imageFilter->GetOutput();
62
64}
static void ITKToVTKImage(typename TImage::Pointer input, vtkImageData *output)
static void VTKToITKImage(vtkImageData *input, typename TImage::Pointer output)

The documentation for this class was generated from the following files: