Class FourierDescriptorUniform

java.lang.Object
imagingbook.common.geometry.fd.FourierDescriptorUniform

public abstract class FourierDescriptorUniform extends Object

Defines static methods to create Fourier descriptors from uniformly sampled point sequences. See Ch. 26 of [1] for additional details.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction Using Java, 2nd ed, Springer (2016).

Version:
2022/10/24
  • Method Details

    • from

      public static FourierDescriptor from(Pnt2d[] V)
      Creates a new Fourier descriptor from a uniformly sampled polygon V with the maximum number of Fourier coefficient pairs. The length of the resulting DFT spectrum equals V.length.
      Parameters:
      V - a polygon
      Returns:
      a new FourierDescriptorUniform instance
    • from

      public static FourierDescriptor from(Pnt2d[] V, int mp)
      Creates a new Fourier descriptor from a uniformly sampled polygon V with Mp coefficient pairs. The length of the resulting DFT spectrum is 2 * mp + 1, i.e., it must be assured that Mp < (V.length - 1) ÷ 2.
      Parameters:
      V - a polygon
      mp - number of coefficient pairs
      Returns:
      a new FourierDescriptorUniform instance
    • from

      public static FourierDescriptor from(Complex[] V)
      Creates a new Fourier descriptor from a uniformly sampled polygon V with the maximum number of Fourier coefficient pairs. The length of the resulting DFT spectrum equals V.length.
      Parameters:
      V - a polygon
      Returns:
      a new FourierDescriptorUniform instance
    • from

      public static FourierDescriptor from(Complex[] V, int mp)
      Creates a new Fourier descriptor from a uniformly sampled polygon V with Mp coefficient pairs. The length of the resulting DFT spectrum is 2 * mp + 1, i.e., it must be assured that Mp < (V.length - 1) ÷ 2.
      Parameters:
      V - a sequence of uniformly-spaced 2D sample points
      mp - number of coefficient pairs
      Returns:
      a new FourierDescriptorUniform instance