Class BilinearRectangle_U8

All Implemented Interfaces:

public class BilinearRectangle_U8
extends Object
implements InterpolateRectangle<GrayU8>

Performs bilinear interpolation to extract values between pixels in an image. Image borders are detected and handled appropriately.

NOTE: This code was automatically generated using GenerateBilinearRectangle.

  • Constructor Details

    • BilinearRectangle_U8

      public BilinearRectangle_U8​(GrayU8 image)
    • BilinearRectangle_U8

      public BilinearRectangle_U8()
  • Method Details

    • setImage

      public void setImage​(GrayU8 image)
      Description copied from interface: InterpolateRectangle
      Change the image that is being interpolated.
      Specified by:
      setImage in interface InterpolateRectangle<GrayU8>
      image - An image.
    • getImage

      public GrayU8 getImage()
      Description copied from interface: InterpolateRectangle
      Returns the image which is being interpolated.
      Specified by:
      getImage in interface InterpolateRectangle<GrayU8>
      A reference to the image being interpolated.
    • region

      public void region​(float tl_x, float tl_y, GrayF32 output)
      Description copied from interface: InterpolateRectangle
      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.
      Specified by:
      region in interface InterpolateRectangle<GrayU8>
      tl_x - upper left corner of the region in the image.
      tl_y - upper left corner of the region in the image.
      output - Where the interpolated region is to be copied into