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

Wraps itk::BoundedReciprocalImageFilter. More...

#include <vtkvmtkBoundedReciprocalImageFilter.h>

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

Public Types

typedef vtkSimpleImageToImageFilter Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Detailed Description

Wraps itk::BoundedReciprocalImageFilter.

vtkvmtkBoundedReciprocalImageFilter applies the pointwise mapping 1 / (1 + x) to every pixel of the (internally float-cast) input image, producing an output bounded in (0, 1]: large input values (e.g. high gradient magnitude) map to values near 0, while small input values map to values near 1. It takes no parameters. This is one of the ways the vmtkimagefeatures pype script turns a gradient magnitude image into a feature/speed image suitable for level-set segmentation, where low speed near vessel edges (high gradient) helps stop front propagation.

See also
vtkvmtkSigmoidImageFilter, vtkvmtkGradientMagnitudeImageFilter

Definition at line 43 of file vtkvmtkBoundedReciprocalImageFilter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkSimpleImageToImageFilter vtkvmtkBoundedReciprocalImageFilter::Superclass

Definition at line 47 of file vtkvmtkBoundedReciprocalImageFilter.h.

Constructor & Destructor Documentation

◆ vtkvmtkBoundedReciprocalImageFilter()

vtkvmtkBoundedReciprocalImageFilter::vtkvmtkBoundedReciprocalImageFilter ( )
inlineprotected

Definition at line 51 of file vtkvmtkBoundedReciprocalImageFilter.h.

51{};

◆ ~vtkvmtkBoundedReciprocalImageFilter()

vtkvmtkBoundedReciprocalImageFilter::~vtkvmtkBoundedReciprocalImageFilter ( )
inlineprotected

Definition at line 52 of file vtkvmtkBoundedReciprocalImageFilter.h.

52{};

Member Function Documentation

◆ New()

vtkvmtkBoundedReciprocalImageFilter * vtkvmtkBoundedReciprocalImageFilter::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkBoundedReciprocalImageFilter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkBoundedReciprocalImageFilter * vtkvmtkBoundedReciprocalImageFilter::NewInstance ( ) const

◆ SimpleExecute()

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

Definition at line 35 of file vtkvmtkBoundedReciprocalImageFilter.cxx.

36{
37 typedef itk::Image<float,3> ImageType;
38
39 ImageType::Pointer inImage = ImageType::New();
40
42
43 typedef itk::BoundedReciprocalImageFilter<ImageType, ImageType> BoundedReciprocalFilterType;
44 BoundedReciprocalFilterType::Pointer boundedReciprocalFilter = BoundedReciprocalFilterType::New();
45 boundedReciprocalFilter->SetInput(inImage);
46 boundedReciprocalFilter->Update();
47
48 vtkvmtkITKFilterUtilities::ITKToVTKImage<ImageType>(boundedReciprocalFilter->GetOutput(),output);
49}
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: