Interface Dft2d.Float

All Superinterfaces:
Dft2d
All Known Implementing Classes:
Dft2dDirect.Float, Dft2dFast.Float
Enclosing interface:
Dft2d

public static interface Dft2d.Float extends Dft2d
Sub-interface for 2D DFT implementations operating on float data.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface imagingbook.spectral.dft.Dft2d

    Dft2d.Double, Dft2d.Float
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    checkSize(float[][] A)
     
    default void
    extractCol(float[][] g, int u, float[] col)
     
    default void
    extractRow(float[][] g, int v, float[] row)
     
    default void
    forward(float[][] gRe, float[][] gIm)
    Performs an "in-place" forward DFT or FFT on the supplied 2D data.
    get1dDft(int size)
    Returns a suitable 1D DFT of the specified size (float).
    default float[][]
    getMagnitude(float[][] re, float[][] im)
    Calculates and returns the magnitude of the supplied complex-valued 2D data.
    default void
    insertCol(float[][] g, int u, float[] col)
     
    default void
    insertRow(float[][] g, int v, float[] row)
     
    default void
    inverse(float[][] GRe, float[][] GIm)
    Performs an "in-place" inverse DFT or FFT on the supplied 2D spectrum.
    default void
    transform(float[][] inRe, float[][] inIm, boolean forward)
    Transforms the given 2D arrays 'in-place'.

    Methods inherited from interface imagingbook.spectral.dft.Dft2d

    getHeight, getScalingMode, getWidth
  • Method Details

    • get1dDft

      Dft1d.Float get1dDft(int size)
      Returns a suitable 1D DFT of the specified size (float).
      Parameters:
      size - the size of the DFT
      Returns:
      a Dft1d.Float instance
    • transform

      default void transform(float[][] inRe, float[][] inIm, boolean forward)
      Transforms the given 2D arrays 'in-place'. Separate arrays of identical size must be supplied for the real and imaginary parts of the signal (forward) or spectrum (inverse), neither of which may be null.
      Parameters:
      inRe - real part of the input signal or spectrum (modified)
      inIm - imaginary part of the input signal or spectrum (modified)
      forward - forward transformation if true, inverse transformation if false
    • extractRow

      default void extractRow(float[][] g, int v, float[] row)
    • insertRow

      default void insertRow(float[][] g, int v, float[] row)
    • extractCol

      default void extractCol(float[][] g, int u, float[] col)
    • insertCol

      default void insertCol(float[][] g, int u, float[] col)
    • forward

      default void forward(float[][] gRe, float[][] gIm)
      Performs an "in-place" forward DFT or FFT on the supplied 2D data. The input signal is replaced by the associated DFT spectrum.
      Parameters:
      gRe - real part of the signal (modified)
      gIm - imaginary part of the signal (modified)
      See Also:
    • inverse

      default void inverse(float[][] GRe, float[][] GIm)
      Performs an "in-place" inverse DFT or FFT on the supplied 2D spectrum. The input spectrum is replaced by the associated signal.
      Parameters:
      GRe - real part of the spectrum (modified)
      GIm - imaginary part of the spectrum (modified)
      See Also:
    • checkSize

      default void checkSize(float[][] A)
    • getMagnitude

      default float[][] getMagnitude(float[][] re, float[][] im)
      Calculates and returns the magnitude of the supplied complex-valued 2D data.
      Parameters:
      re - the real part of the data
      im - the imaginary part of the data
      Returns:
      a 2D array of magnitude values