Class Dct2dDirect.Double

java.lang.Object
imagingbook.spectral.dct.Dct2dDirect
imagingbook.spectral.dct.Dct2dDirect.Double
All Implemented Interfaces:
Dct2d, Dct2d.Double
Enclosing class:
Dct2dDirect

public static class Dct2dDirect.Double extends Dct2dDirect implements Dct2d.Double
Two-dimensional DCT implementation using double data.
  • Constructor Details

    • Double

      public Double(int width, int height)
      Constructor.
      Parameters:
      width - width of the data array (dimension 0)
      height - height of the data array (dimension 1)
  • Method Details

    • get1dDct

      public Dct1d.Double get1dDct(int size)
      Description copied from interface: Dct2d.Double
      Returns a suitable 1D DCT of the specified size (double).
      Specified by:
      get1dDct in interface Dct2d.Double
      Parameters:
      size - the size of the DCT
      Returns:
      a Dct1d.Double instance
    • getWidth

      public int getWidth()
      Description copied from interface: Dct2d
      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 Dct2d
      Returns:
      the width of the 2D data array
    • getHeight

      public int getHeight()
      Description copied from interface: Dct2d
      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 Dct2d
      Returns:
      the height of the 2D data array