Class NearestNeighborPixel_S32

java.lang.Object
boofcv.alg.interpolate.NearestNeighborPixelS<GrayS32>
boofcv.alg.interpolate.impl.NearestNeighborPixel_S32
All Implemented Interfaces:
InterpolatePixel<GrayS32>, InterpolatePixelS<GrayS32>

@Generated("boofcv.alg.interpolate.impl.GenerateNearestNeighborPixel_SB")
public class NearestNeighborPixel_S32
extends NearestNeighborPixelS<GrayS32>

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

DO NOT MODIFY. Automatically generated code created by GenerateNearestNeighborPixel_SB

  • Constructor Details

    • NearestNeighborPixel_S32

      public NearestNeighborPixel_S32()
    • NearestNeighborPixel_S32

      public NearestNeighborPixel_S32​(GrayS32 orig)
  • Method Details

    • setImage

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

      public float get_fast​(float x, float y)
      Description copied from interface: InterpolatePixelS
      Returns the interpolated pixel value 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.
      Returns:
      Interpolated intensity value.
    • get_border

      public float get_border​(float x, float y)
    • get

      public float get​(float x, float y)
      Description copied from interface: InterpolatePixelS
      Returns the interpolated pixel value at the specified location while checking to see if border conditions apply. If the requested pixel is outside the image border it will attempt to process it using or throw a null pointer exception of a border handler has not been specified.
      Parameters:
      x - Point's x-coordinate. x ≥ 0 && x < image.width or all values if border specified
      y - Point's y-coordinate. y ≥ 0 && y < image.height or all values if border specified
      Returns:
      Interpolated intensity value or NaN if it can't be interpolated.
    • copy

      public InterpolatePixelS<GrayS32> copy()
      Description copied from interface: InterpolatePixelS
      Creates a new instance of this interpolation method
    • getImageType

      public ImageType<GrayS32> getImageType()
      Description copied from interface: InterpolatePixel
      Type of image it can process