Interface Dct2d.Float

All Superinterfaces:
Dct2d
All Known Implementing Classes:
Dct2dDirect.Float, Dct2dFast.Float
Enclosing interface:
Dct2d

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

    Nested classes/interfaces inherited from interface imagingbook.spectral.dct.Dct2d

    Dct2d.Double, Dct2d.Float
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    checkSize(float[][] A)
     
    default void
    extractCol(float[][] data, int u, float[] column)
     
    default void
    extractRow(float[][] data, int v, float[] row)
     
    default void
    forward(float[][] g)
    Performs an "in-place" 2D DCT forward transformation on the supplied data.
    get1dDct(int size)
    Returns a suitable 1D DCT of the specified size (float).
    default void
    insertCol(float[][] data, int u, float[] column)
     
    default void
    insertRow(float[][] data, int v, float[] row)
     
    default void
    inverse(float[][] G)
    Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum.
    default void
    transform(float[][] data, boolean forward)
    Transforms the given 2D array 'in-place'.

    Methods inherited from interface imagingbook.spectral.dct.Dct2d

    getHeight, getWidth
  • Method Details

    • get1dDct

      Dct1d.Float get1dDct(int size)
      Returns a suitable 1D DCT of the specified size (float).
      Parameters:
      size - the size of the DCT
      Returns:
      a Dct1d.Float instance
    • forward

      default void forward(float[][] g)
      Performs an "in-place" 2D DCT forward transformation on the supplied data. The input signal is replaced by the associated DCT spectrum.
      Parameters:
      g - the signal to be transformed (modified)
    • inverse

      default void inverse(float[][] G)
      Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum. The input spectrum is replaced by the associated signal.
      Parameters:
      G - the spectrum to be transformed (modified)
    • transform

      default void transform(float[][] data, boolean forward)
      Transforms the given 2D array 'in-place'.
      Parameters:
      data - the input signal or spectrum (modified)
      forward - forward transformation if true, inverse transformation if false
    • extractRow

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

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

      default void extractCol(float[][] data, int u, float[] column)
    • insertCol

      default void insertCol(float[][] data, int u, float[] column)
    • checkSize

      default void checkSize(float[][] A)