Interface Dct2d.Double

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

public static interface Dct2d.Double extends Dct2d
Sub-interface for 2D DCT implementations operating on double 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(double[][] A)
     
    default void
    extractCol(double[][] data, int u, double[] column)
     
    default void
    extractRow(double[][] data, int v, double[] row)
     
    default void
    forward(double[][] 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 (double).
    default void
    insertCol(double[][] data, int u, double[] column)
     
    default void
    insertRow(double[][] data, int v, double[] row)
     
    default void
    inverse(double[][] G)
    Performs an "in-place" 2D DCT inverse transformation on the supplied spectrum.
    default void
    transform(double[][] data, boolean forward)
    Transforms the given 2D array 'in-place'.

    Methods inherited from interface imagingbook.spectral.dct.Dct2d

    getHeight, getWidth
  • Method Details

    • get1dDct

      Returns a suitable 1D DCT of the specified size (double).
      Parameters:
      size - the size of the DCT
      Returns:
      a Dct1d.Double instance
    • forward

      default void forward(double[][] 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(double[][] 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(double[][] 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(double[][] data, int v, double[] row)
    • insertRow

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

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

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

      default void checkSize(double[][] A)