Class FFTPadImageFilter


public class FFTPadImageFilter extends ImageFilter
Pad an image to make it suitable for an FFT transformation. FFT filters usually requires a specific image size. The size is decomposed in several prime factors, and the filter only supports prime factors up to a maximum value. This filter automatically finds the greatest prime factor required by the available implementation and pads the input appropriately. This code was adapted from the Insight Journal contribution: "FFT Based Convolution" by Gaetan Lehmann https://www.insight-journal.org/browse/publication/717 Gaetan Lehmann See: FFTShiftImageFilter itk::simple::FFTPad for the procedural interface itk::FFTPadImageFilter for the Doxygen on the original ITK class. C++ includes: sitkFFTPadImageFilter.h
  • Constructor Details

    • FFTPadImageFilter

      protected FFTPadImageFilter(long cPtr, boolean cMemoryOwn)
    • FFTPadImageFilter

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

    • getCPtr

      protected static long getCPtr(FFTPadImageFilter obj)
    • swigRelease

      protected static long swigRelease(FFTPadImageFilter obj)
    • finalize

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

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

      public void setBoundaryCondition(FFTPadImageFilter.BoundaryConditionType BoundaryCondition)
      Self& itk::simple::FFTPadImageFilter::SetBoundaryCondition(BoundaryConditionType BoundaryCondition)
    • getBoundaryCondition

      public FFTPadImageFilter.BoundaryConditionType getBoundaryCondition()
      BoundaryConditionType itk::simple::FFTPadImageFilter::GetBoundaryCondition() const
    • setSizeGreatestPrimeFactor

      public void setSizeGreatestPrimeFactor(int SizeGreatestPrimeFactor)
      Self& itk::simple::FFTPadImageFilter::SetSizeGreatestPrimeFactor(int SizeGreatestPrimeFactor) Set/Get the greatest prime factor allowed on the size of the padded image. The filter increase the size of the image to reach a size with the greatest prime factor smaller or equal to the specified value. The default value is 13, which is the greatest prime number for which the FFT are precomputed in FFTW, and thus gives very good performance. A greatest prime factor of 2 produce a size which is a power of 2, and thus is suitable for vnl base fft filters. A greatest prime factor of 1 or less - typically 0 - disable the extra padding.
    • getSizeGreatestPrimeFactor

      public int getSizeGreatestPrimeFactor()
      int itk::simple::FFTPadImageFilter::GetSizeGreatestPrimeFactor() const Set/Get the greatest prime factor allowed on the size of the padded image. The filter increase the size of the image to reach a size with the greatest prime factor smaller or equal to the specified value. The default value is 13, which is the greatest prime number for which the FFT are precomputed in FFTW, and thus gives very good performance. A greatest prime factor of 2 produce a size which is a power of 2, and thus is suitable for vnl base fft filters. A greatest prime factor of 1 or less - typically 0 - disable the extra padding.
    • getName

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

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

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