Class GImageGrayDistorted<T extends ImageGray<T>>

All Implemented Interfaces:

public class GImageGrayDistorted<T extends ImageGray<T>> extends Object implements GImageGray
Implementation of GImageGray that applies a PixelTransform then interpolates to get the pixel's value.
  • Constructor Details

  • Method Details

    • wrap

      public void wrap(ImageGray image)
      Specified by:
      wrap in interface GImageGray
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface GImageGray
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface GImageGray
    • isFloatingPoint

      public boolean isFloatingPoint()
      Specified by:
      isFloatingPoint in interface GImageGray
    • get

      public Number get(int x, int y)
      Specified by:
      get in interface GImageGray
    • set

      public void set(int x, int y, Number num)
      Description copied from interface: GImageGray
      Set's pixel value using number. If native type of 'num' and image are the same then there is no loss in precision.
      Specified by:
      set in interface GImageGray
      x - pixel coordinate x-value
      y - pixel coordinate y-value
      num - Value of the pixel
    • unsafe_getD

      public double unsafe_getD(int x, int y)
      Description copied from interface: GImageGray
      get which returns a double, has no bounds checking. Still slow, but faster than the super generic get. Also doesn't create memory on each get
      Specified by:
      unsafe_getD in interface GImageGray
    • unsafe_getF

      public float unsafe_getF(int x, int y)
      Specified by:
      unsafe_getF in interface GImageGray
    • set

      public void set(int index, float value)
      Description copied from interface: GImageGray
      Sets pixel based on pixel value in data array
      Specified by:
      set in interface GImageGray
    • getF

      public float getF(int index)
      Specified by:
      getF in interface GImageGray
    • getImage

      public ImageGray getImage()
      Specified by:
      getImage in interface GImageGray
    • getImageType

      public Class getImageType()
      Specified by:
      getImageType in interface GImageGray