#include <itkBSplineDownsampleImageFilter.h>
Public Types | |
typedef BSplineDownsampleImageFilter | Self |
typedef ResamplerType | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::InputImageType | InputImageType |
typedef Superclass::InputImagePointer | InputImagePointer |
typedef Superclass::OutputImagePointer | OutputImagePointer |
typedef Superclass::OutputImageIterator | OutputImageIterator |
Public Methods | |
virtual const char * | GetClassName () const |
void | GenerateOutputInformation () |
void | GenerateInputRequestedRegion () |
Static Public Methods | |
Pointer | New () |
Protected Methods | |
void | GenerateData () |
void | EnlargeOutputRequestedRegion (DataObject *output) |
BSplineDownsampleImageFilter () | |
virtual | ~BSplineDownsampleImageFilter () |
void | PrintSelf (std::ostream &os, Indent indent) const |
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.
Definition at line 83 of file itkBSplineDownsampleImageFilter.h.
|
Definition at line 91 of file itkBSplineDownsampleImageFilter.h. |
|
InputImagePointer typedef support. Definition at line 104 of file itkBSplineDownsampleImageFilter.h. |
|
InputImageType typedef support. Definition at line 101 of file itkBSplineDownsampleImageFilter.h. |
|
OutputImageIterator typedef support. Definition at line 110 of file itkBSplineDownsampleImageFilter.h. |
|
OutputImagePointer typedef support. Definition at line 107 of file itkBSplineDownsampleImageFilter.h. |
|
Definition at line 90 of file itkBSplineDownsampleImageFilter.h. |
|
Standard class typedefs. Definition at line 88 of file itkBSplineDownsampleImageFilter.h. |
|
Definition at line 89 of file itkBSplineDownsampleImageFilter.h. |
|
|
|
Definition at line 125 of file itkBSplineDownsampleImageFilter.h. |
|
|
|
|
|
This filter requires all of the input image |
|
Creates an image half the size of the input image with spacing twice the input image. |
|
Run-time type information (and related methods). |
|
New macro for creation of through a Smart Pointer |
|
|