Class BilinearPixelS<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.interpolate.BilinearPixelS<T>
All Implemented Interfaces:
InterpolatePixel<T>, InterpolatePixelS<T>
Direct Known Subclasses:
ImplBilinearPixel_F32, ImplBilinearPixel_F64, ImplBilinearPixel_S16, ImplBilinearPixel_S32, ImplBilinearPixel_U16, ImplBilinearPixel_U8

public abstract class BilinearPixelS<T extends ImageGray<T>> extends Object implements InterpolatePixelS<T>

Performs bilinear interpolation to extract values between pixels in an image. When a boundary is encountered the number of pixels used to interpolate is automatically reduced.

  • Field Details

    • border

      protected ImageBorder<T extends ImageGray<T>> border
    • orig

      protected T extends ImageGray<T> orig
    • stride

      protected int stride
    • width

      protected int width
    • height

      protected int height
  • Constructor Details

    • BilinearPixelS

      public BilinearPixelS()
  • Method Details

    • setBorder

      public void setBorder(ImageBorder<T> border)
      Description copied from interface: InterpolatePixel
      Set's the class used to "read" pixels outside the image border.
      Specified by:
      setBorder in interface InterpolatePixel<T extends ImageGray<T>>
      Parameters:
      border - Class for reading outside the image border
    • setImage

      public void setImage(T image)
      Description copied from interface: InterpolatePixel
      Change the image that is being interpolated.
      Specified by:
      setImage in interface InterpolatePixel<T extends ImageGray<T>>
      Parameters:
      image - An image.
    • getImage

      public T getImage()
      Description copied from interface: InterpolatePixel
      Returns the image which is being interpolated.
      Specified by:
      getImage in interface InterpolatePixel<T extends ImageGray<T>>
      Returns:
      A reference to the image being interpolated.
    • isInFastBounds

      public boolean isInFastBounds(float x, float y)
      Description copied from interface: InterpolatePixel
      Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.
      Specified by:
      isInFastBounds in interface InterpolatePixel<T extends ImageGray<T>>
      Parameters:
      x - Point's x-coordinate.
      y - Point's y-coordinate.
      Returns:
      true if get_fast() can be called.
    • getFastBorderX

      public int getFastBorderX()
      Description copied from interface: InterpolatePixel
      Border around the image that fast interpolation cannot be called.
      Specified by:
      getFastBorderX in interface InterpolatePixel<T extends ImageGray<T>>
      Returns:
      Border size in pixels
    • getFastBorderY

      public int getFastBorderY()
      Description copied from interface: InterpolatePixel
      Border around the image that fast interpolation cannot be called.
      Specified by:
      getFastBorderY in interface InterpolatePixel<T extends ImageGray<T>>
      Returns:
      Border size in pixels
    • getBorder

      public ImageBorder<T> getBorder()
      Description copied from interface: InterpolatePixel
      Returns the class which handles the image border
      Specified by:
      getBorder in interface InterpolatePixel<T extends ImageGray<T>>