Class Dct2dDirect.Float

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

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

    • Float

      public Float(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.Float get1dDct(int size)
      Description copied from interface: Dct2d.Float
      Returns a suitable 1D DCT of the specified size (float).
      Specified by:
      get1dDct in interface Dct2d.Float
      Parameters:
      size - the size of the DCT
      Returns:
      a Dct1d.Float 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