Interface InterpolateRectangle<T extends ImageGray<T>>

All Known Implementing Classes:
BilinearRectangle_F32, BilinearRectangle_S16, BilinearRectangle_U8, NearestNeighborRectangle_F32

public interface InterpolateRectangle<T extends ImageGray<T>>
Performs interpolation across a whole rectangular region inside the image. This can be significantly faster than interpolating on a per-pixel basis.
  • Method Summary

    Modifier and Type Method Description
    T getImage()
    Returns the image which is being interpolated.
    void region​(float tl_x, float tl_y, GrayF32 dest)
    Copies a grid from the source image starting at the specified coordinate into the destination image.
    void setImage​(T image)
    Change the image that is being interpolated.
  • Method Details

    • setImage

      void setImage​(T image)
      Change the image that is being interpolated.
      Parameters:
      image - An image.
    • getImage

      T getImage()
      Returns the image which is being interpolated.
      Returns:
      A reference to the image being interpolated.
    • region

      void region​(float tl_x, float tl_y, GrayF32 dest)
      Copies a grid from the source image starting at the specified coordinate into the destination image. The 'dest' image must be within the original image.
      Parameters:
      tl_x - upper left corner of the region in the image.
      tl_y - upper left corner of the region in the image.
      dest - Where the interpolated region is to be copied into