ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkBSplineDownsampleImageFilter.h>
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>;
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.
Definition at line 89 of file itkBSplineDownsampleImageFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImagePointer = typename Superclass::InputImagePointer |
using | InputImageType = typename Superclass::InputImageType |
using | OutputImageIterator = typename Superclass::OutputImageIterator |
using | OutputImagePointer = typename Superclass::OutputImagePointer |
using | Pointer = SmartPointer< Self > |
using | Self = BSplineDownsampleImageFilter |
using | Superclass = ResamplerType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
void | GenerateInputRequestedRegion () override |
void | GenerateOutputInformation () override |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
BSplineDownsampleImageFilter ()=default | |
void | EnlargeOutputRequestedRegion (DataObject *output) override |
void | GenerateData () override |
~BSplineDownsampleImageFilter () override=default | |
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::ConstPointer = SmartPointer< const Self > |
Definition at line 99 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::InputImagePointer = typename Superclass::InputImagePointer |
InputImagePointer type alias support
Definition at line 111 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::InputImageType = typename Superclass::InputImageType |
InputImageType type alias support
Definition at line 108 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::OutputImageIterator = typename Superclass::OutputImageIterator |
OutputImageIterator type alias support
Definition at line 117 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::OutputImagePointer = typename Superclass::OutputImagePointer |
OutputImagePointer type alias support
Definition at line 114 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::Pointer = SmartPointer< Self > |
Definition at line 98 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::Self = BSplineDownsampleImageFilter |
Standard class type aliases.
Definition at line 96 of file itkBSplineDownsampleImageFilter.h.
using itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::Superclass = ResamplerType |
Definition at line 97 of file itkBSplineDownsampleImageFilter.h.
|
protecteddefault |
|
overrideprotecteddefault |
virtual::itk::LightObject::Pointer itk::BSplineDownsampleImageFilter< TInputImage, TOutputImage, ResamplerType >::CreateAnother | ( | ) | const |
|
overrideprotected |
|
overrideprotected |
|
override |
This filter requires all of the input image
|
override |
Creates an image half the size of the input image with spacing twice the input image.
|
virtual |
Run-time type information (and related methods).
|
static |
New macro for creation of through a Smart Pointer