Interface InterpolatePixel<T extends ImageBase<T>>

All Known Subinterfaces:
InterpolatePixelMB<T>, InterpolatePixelS<T>
All Known Implementing Classes:
AbstractInterpolatePixelS, BilinearPixelMB, BilinearPixelS, ImplBilinearPixel_F32, ImplBilinearPixel_F64, ImplBilinearPixel_IL_F32, ImplBilinearPixel_IL_F64, ImplBilinearPixel_IL_S16, ImplBilinearPixel_IL_S32, ImplBilinearPixel_IL_U16, ImplBilinearPixel_IL_U8, ImplBilinearPixel_S16, ImplBilinearPixel_S32, ImplBilinearPixel_U16, ImplBilinearPixel_U8, ImplInterpolatePixelConvolution_F32, ImplInterpolatePixelConvolution_S16, ImplInterpolatePixelConvolution_U8, ImplPolynomialPixel_F32, ImplPolynomialPixel_I, InterpolatePixel_PL_using_SB, InterpolatePixel_S_to_MB, InterpolatePixelDistortS, NearestNeighborPixel_F32, NearestNeighborPixel_IL_F32, NearestNeighborPixel_IL_S16, NearestNeighborPixel_IL_S32, NearestNeighborPixel_IL_U16, NearestNeighborPixel_IL_U8, NearestNeighborPixel_S16, NearestNeighborPixel_S32, NearestNeighborPixel_U16, NearestNeighborPixel_U8, NearestNeighborPixelMB, NearestNeighborPixelS, PolynomialPixel

public interface InterpolatePixel<T extends ImageBase<T>>
Interface for interpolation between pixels on a per-pixel basis. If a whole rectangular region needs to be interpolated then InterpolateRectangle should be considered for performance reasons.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a copy
    Returns the class which handles the image border
    int
    Border around the image that fast interpolation cannot be called.
    int
    Border around the image that fast interpolation cannot be called.
    Returns the image which is being interpolated.
    Type of image it can process
    boolean
    isInFastBounds(float x, float y)
    Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.
    void
    Set's the class used to "read" pixels outside the image border.
    void
    setImage(T image)
    Change the image that is being interpolated.
  • Method Details

    • setBorder

      void setBorder(ImageBorder<T> border)
      Set's the class used to "read" pixels outside the image border.
      Parameters:
      border - Class for reading outside the image border
    • getBorder

      ImageBorder<T> getBorder()
      Returns the class which handles the image border
    • 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.
    • isInFastBounds

      boolean isInFastBounds(float x, float y)
      Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.
      Parameters:
      x - Point's x-coordinate.
      y - Point's y-coordinate.
      Returns:
      true if get_fast() can be called.
    • getFastBorderX

      int getFastBorderX()
      Border around the image that fast interpolation cannot be called.
      Returns:
      Border size in pixels
    • getFastBorderY

      int getFastBorderY()
      Border around the image that fast interpolation cannot be called.
      Returns:
      Border size in pixels
    • copy

      Creates a copy
    • getImageType

      ImageType<T> getImageType()
      Type of image it can process