ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType > Class Template Reference

#include <itkBSplineDownsampleImageFilter.h>

Detailed Description

template<typename TInputImage, typename TOutputImage, typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
class itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >

Down-samples an image by a factor of 2 using B-Spline filter interpolation.

This class is the public interface for spline down-sampling as defined by the ResamplerType. Requires the use of a resampler type. If in doubt, the basic itkBSplineResampleImageFilterBase should work fine for most applications.

This class may also be used to create a smoother by combining it with the upSampler as in the following example: using ResamplerType = itk::BSplineResampleImageFilterBase<ImageType2D, ImageType2D>; using DownsamplerType2D = itk::BSplineDownsampleImageFilter<ImageType2D,ImageType2D,ResamplerType>; using UpsamplerType2D = itk::BSplineUpsampleImageFilter<ImageType2D,ImageType2D,ResamplerType>;

auto downSampler = DownsamplerType2D::New(); UpsamplerType2D::Pointer upSampler = UpsamplerType2D::New(); int splineOrder = 3; downSampler->SetSplineOrder(splineOrder); upSampler->SetSplineOrder(splineOrder);

downSampler->SetInput(image); downSampler->Update();

upSampler->SetInput( downSampler->GetOutput() ); // output of downSampler is input to upSampler upSampler->Update();

ImageTypePtr2D outImage2 = upSampler->GetOutput(); // outImage2 is the smoothed imaged

Limitations: This class requires specification of a resampler type which may be one of: itkBSplineResampleImageFilterBase, itkBSplineL2ResampleImageFilterBase itkBSplineSplineCenteredResampleImageFilterBase, itkBSplineCenteredL2ResampleImageFilterBase The limitations of these resampler types will apply to this filter. Down-samples only by a factor of 2.

See also
itkBSplineDownsampleImageFilter
itkBSplineL2ResampleImageFilter
itkBSplineResampleImageFilterBase
itkBSplineCenteredResampleImageFilterBase
itkBSplineCenteredL2ResampleImageFilterBase

Definition at line 92 of file itkBSplineDownsampleImageFilter.h.

+ Inheritance diagram for itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >:
+ Collaboration diagram for itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >:

Public Types

using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = BSplineDownsampleImageFilter
 
using Superclass = ResamplerType
 

Public Member Functions

void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
const char * GetNameOfClass () const override
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 BSplineDownsampleImageFilter ()=default
 
void EnlargeOutputRequestedRegion (DataObject *output) override
 
void GenerateData () override
 
 ~BSplineDownsampleImageFilter () override=default
 

Member Typedef Documentation

◆ ConstPointer

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::ConstPointer = SmartPointer<const Self>

Definition at line 101 of file itkBSplineDownsampleImageFilter.h.

◆ Pointer

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::Pointer = SmartPointer<Self>

Definition at line 100 of file itkBSplineDownsampleImageFilter.h.

◆ Self

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::Self = BSplineDownsampleImageFilter

Standard class type aliases.

Definition at line 98 of file itkBSplineDownsampleImageFilter.h.

◆ Superclass

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::Superclass = ResamplerType

Definition at line 99 of file itkBSplineDownsampleImageFilter.h.

Constructor & Destructor Documentation

◆ BSplineDownsampleImageFilter()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::BSplineDownsampleImageFilter ( )
protecteddefault

◆ ~BSplineDownsampleImageFilter()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::~BSplineDownsampleImageFilter ( )
overrideprotecteddefault

Member Function Documentation

◆ EnlargeOutputRequestedRegion()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::EnlargeOutputRequestedRegion ( DataObject output)
overrideprotected

◆ GenerateData()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::GenerateData ( )
overrideprotected

◆ GenerateInputRequestedRegion()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::GenerateInputRequestedRegion ( )
override

This filter requires all of the input image

◆ GenerateOutputInformation()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::GenerateOutputInformation ( )
override

Creates an image half the size of the input image with spacing twice the input image.

◆ GetNameOfClass()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
const char* itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::GetNameOfClass ( ) const
override

◆ New()

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase<TInputImage, TOutputImage>>
static Pointer itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::New ( )
static

New macro for creation of through a Smart Pointer


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