Class ExpandImageFilter


public class ExpandImageFilter extends ImageFilter
Expand the size of an image by an integer factor in each dimension. ExpandImageFilter increases the size of an image by an integer factor in each dimension using a interpolation method. The output image size in each dimension is given by: OutputSize[j] = InputSize[j] * ExpandFactors[j] The output values are obtained by interpolating the input image. The default interpolation type used is the LinearInterpolateImageFunction . The user can specify a particular interpolation function via SetInterpolator() . Note that the input interpolator must derive from base class InterpolateImageFunction . This filter will produce an output with different pixel spacing that its input image such that: OutputSpacing[j] = InputSpacing[j] / ExpandFactors[j] The filter is templated over the input image type and the output image type. This filter is implemented as a multithreaded filter and supports streaming. This filter assumes that the input and output image has the same number of dimensions. See: InterpolateImageFunction LinearInterpolationImageFunction itk::simple::Expand for the procedural interface itk::ExpandImageFilter for the Doxygen on the original ITK class. C++ includes: sitkExpandImageFilter.h
  • Constructor Details

    • ExpandImageFilter

      protected ExpandImageFilter(long cPtr, boolean cMemoryOwn)
    • ExpandImageFilter

      public ExpandImageFilter()
      itk::simple::ExpandImageFilter::ExpandImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(ExpandImageFilter obj)
    • swigRelease

      protected static long swigRelease(ExpandImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::ExpandImageFilter::~ExpandImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setExpandFactor

      public void setExpandFactor(long e)
      Self& itk::simple::ExpandImageFilter::SetExpandFactor(unsigned int e) Custom public declarations
    • setExpandFactors

      public void setExpandFactors(VectorUInt32 ExpandFactors)
      Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to value
    • setExpandFactors

      public void setExpandFactors(long value)
      Self& itk::simple::ExpandImageFilter::SetExpandFactors(unsigned int value) Set the values of the ExpandFactors vector all to value
    • getExpandFactors

      public VectorUInt32 getExpandFactors()
      std::vector<unsigned int> itk::simple::ExpandImageFilter::GetExpandFactors() const Get the expand factors.
    • setInterpolator

      public void setInterpolator(InterpolatorEnum Interpolator)
      Self& itk::simple::ExpandImageFilter::SetInterpolator(InterpolatorEnum Interpolator) Get/Set the interpolator function.
    • getInterpolator

      public InterpolatorEnum getInterpolator()
      InterpolatorEnum itk::simple::ExpandImageFilter::GetInterpolator() const Get/Set the interpolator function.
    • getName

      public String getName()
      std::string itk::simple::ExpandImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::ExpandImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1)
      Image itk::simple::ExpandImageFilter::Execute(const Image &image1) Execute the filter on the input image