Class Dft2dFast.Float

java.lang.Object
imagingbook.spectral.dft.Dft2dFast
imagingbook.spectral.dft.Dft2dFast.Float
All Implemented Interfaces:
Dft2d, Dft2d.Float
Enclosing class:
Dft2dFast

public static class Dft2dFast.Float extends Dft2dFast implements Dft2d.Float
Two-dimensional DFT implementation using float data.
  • Constructor Details

    • Float

      public Float(int width, int height, ScalingMode sm)
      Constructor using a specific scaling mode.
      Parameters:
      width - width of the data array (dimension 0)
      height - height of the data array (dimension 1)
      sm - the scaling mode
    • Float

      public Float(int width, int height)
      Constructor using the default scaling mode.
      Parameters:
      width - width of the data array (dimension 0)
      height - height of the data array (dimension 1)
  • Method Details

    • get1dDft

      public Dft1d.Float get1dDft(int size)
      Description copied from interface: Dft2d.Float
      Returns a suitable 1D DFT of the specified size (float).
      Specified by:
      get1dDft in interface Dft2d.Float
      Parameters:
      size - the size of the DFT
      Returns:
      a Dft1d.Float instance
    • getWidth

      public int getWidth()
      Description copied from interface: Dft2d
      Returns the 'width' of the 2D data array (length of dimension 0). Data arrays are indexed as data[x][y], with 0 ≤ x < width and 0 ≤ y < height.
      Specified by:
      getWidth in interface Dft2d
      Returns:
      the width of the 2D data array
    • getHeight

      public int getHeight()
      Description copied from interface: Dft2d
      Returns the 'height' of the 2D data array (length of dimension 1). Data arrays are indexed as data[x][y], with 0 ≤ x < width and 0 ≤ y < height.
      Specified by:
      getHeight in interface Dft2d
      Returns:
      the height of the 2D data array
    • getScalingMode

      public ScalingMode getScalingMode()
      Description copied from interface: Dft2d
      Returns the scaling mode of this DFT (see ScalingMode).
      Specified by:
      getScalingMode in interface Dft2d
      Returns:
      the scaling mode of this DFT.