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

#include <itkBSplineDownsampleImageFilter.h>

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

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: typedef itk::BSplineResampleImageFilterBase<ImageType2D, ImageType2D> ResamplerType; typedef itk::BSplineDownsampleImageFilter<ImageType2D,ImageType2D,ResamplerType> DownsamplerType2D; typedef itk::BSplineUpsampleImageFilter<ImageType2D,ImageType2D,ResamplerType> UpsamplerType2D;

DownsamplerType2D::Pointer 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. Downsamples only by a factor of 2.

See Also
itkBSplineDownsampleImageFilter
itkBSplineL2ResampleImageFilter
itkBSplineResampleImageFilterBase
itkBSplineCenteredResampleImageFilterBase
itkBSplineCenteredL2ResampleImageFilterBase

Definition at line 89 of file itkBSplineDownsampleImageFilter.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::InputImagePointer 
InputImagePointer
 
typedef Superclass::InputImageType InputImageType
 
typedef
Superclass::OutputImageIterator 
OutputImageIterator
 
typedef
Superclass::OutputImagePointer 
OutputImagePointer
 
typedef SmartPointer< SelfPointer
 
typedef
BSplineDownsampleImageFilter 
Self
 
typedef ResamplerType Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
virtual const char * GetNameOfClass () const
 
 typedef (Concept::Convertible< double, typename TOutputImage::PixelType >) DoubleConvertibleToOutputCheck
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 BSplineDownsampleImageFilter ()
 
void EnlargeOutputRequestedRegion (DataObject *output) override
 
void GenerateData () override
 
virtual ~BSplineDownsampleImageFilter ()
 

Private Member Functions

 BSplineDownsampleImageFilter (const Self &) ITK_DELETE_FUNCTION
 
void operator= (const Self &) ITK_DELETE_FUNCTION
 

Member Typedef Documentation

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

Definition at line 97 of file itkBSplineDownsampleImageFilter.h.

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

InputImagePointer typedef support.

Definition at line 109 of file itkBSplineDownsampleImageFilter.h.

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

InputImageType typedef support.

Definition at line 103 of file itkBSplineDownsampleImageFilter.h.

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

OutputImageIterator typedef support.

Definition at line 115 of file itkBSplineDownsampleImageFilter.h.

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

OutputImagePointer typedef support.

Definition at line 112 of file itkBSplineDownsampleImageFilter.h.

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

Definition at line 96 of file itkBSplineDownsampleImageFilter.h.

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

Standard class typedefs.

Definition at line 94 of file itkBSplineDownsampleImageFilter.h.

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

Definition at line 95 of file itkBSplineDownsampleImageFilter.h.

Constructor & Destructor Documentation

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

Definition at line 138 of file itkBSplineDownsampleImageFilter.h.

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage >>
itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::BSplineDownsampleImageFilter ( const Self )
private

Member Function Documentation

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage >>
virtual::itk::LightObject::Pointer itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::CreateAnother ( ) const
template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage >>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::EnlargeOutputRequestedRegion ( DataObject output)
overrideprotected
template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage >>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::GenerateData ( )
overrideprotected
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

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.

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

Run-time type information (and related methods).

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

template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage >>
void itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::operator= ( const Self )
private
template<typename TInputImage , typename TOutputImage , typename ResamplerType = BSplineResampleImageFilterBase< TInputImage, TOutputImage >>
itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::typedef ( Concept::Convertible< double, typename TOutputImage::PixelType >  )

This class requires DoubleConvertibleToOutputCheck in the form of ( Concept::Convertible< double, typename TOutputImage::PixelType > )


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