Class NearestNeighborPixel_IL_U8

java.lang.Object
boofcv.alg.interpolate.NearestNeighborPixelMB<InterleavedU8>
boofcv.alg.interpolate.impl.NearestNeighborPixel_IL_U8
All Implemented Interfaces:
InterpolatePixel<InterleavedU8>, InterpolatePixelMB<InterleavedU8>

@Generated("boofcv.alg.interpolate.impl.GenerateNearestNeighborPixel_IL") public class NearestNeighborPixel_IL_U8 extends NearestNeighborPixelMB<InterleavedU8>

Performs nearest neighbor interpolation to extract values between pixels in an image.

DO NOT MODIFY. Automatically generated code created by GenerateNearestNeighborPixel_IL

  • Constructor Details

    • NearestNeighborPixel_IL_U8

      public NearestNeighborPixel_IL_U8()
    • NearestNeighborPixel_IL_U8

      public NearestNeighborPixel_IL_U8(InterleavedU8 orig)
  • Method Details

    • setImage

      public void setImage(InterleavedU8 image)
      Description copied from interface: InterpolatePixel
      Change the image that is being interpolated.
      Specified by:
      setImage in interface InterpolatePixel<InterleavedU8>
      Overrides:
      setImage in class NearestNeighborPixelMB<InterleavedU8>
      Parameters:
      image - An image.
    • get

      public void get(float x, float y, float[] values)
      Description copied from interface: InterpolatePixelMB
      Returns the interpolated pixel values at the specified location while taking in account the image border. Bounds checking is done to ensure that the coordinate is inside the image and to see if the interpolation technique needs to be adjusted for the image border.
      Parameters:
      x - Point's x-coordinate. x ≥ 0 && x < image.width
      y - Point's y-coordinate. y ≥ 0 && y < image.height
      values - Interpolated value across all bands.
    • get_fast

      public void get_fast(float x, float y, float[] values)
      Description copied from interface: InterpolatePixelMB
      Returns the interpolated pixel values at the specified location while assuming it is inside the image far away from the border. For any input point InterpolatePixel.isInFastBounds(float, float) should return true.
      Parameters:
      x - Point's x-coordinate.
      y - Point's y-coordinate.
      values - Interpolated value across all bands.
    • copy

      Description copied from interface: InterpolatePixelMB
      Creates a new instance of this interpolation method