Class InterpolatePixel_S_to_MB<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.interpolate.InterpolatePixel_S_to_MB<T>
All Implemented Interfaces:
InterpolatePixel<T>, InterpolatePixelMB<T>

public class InterpolatePixel_S_to_MB<T extends ImageGray<T>> extends Object implements InterpolatePixelMB<T>
Wrapper that allows a InterpolatePixelS to be used as a InterpolatePixelMB, input image has to be ImageGray.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new instance of this interpolation method
    void
    get(float x, float y, float[] values)
    Returns the interpolated pixel values at the specified location while taking in account the image border.
    void
    get_fast(float x, float y, float[] values)
    Returns the interpolated pixel values at the specified location while assuming it is inside the image far away from the border.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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.
      Specified by:
      get in interface InterpolatePixelMB<T extends ImageGray<T>>
      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.
      Specified by:
      get_fast in interface InterpolatePixelMB<T extends ImageGray<T>>
      Parameters:
      x - Point's x-coordinate.
      y - Point's y-coordinate.
      values - Interpolated value across all bands.
    • copy

      public InterpolatePixelMB<T> copy()
      Description copied from interface: InterpolatePixelMB
      Creates a new instance of this interpolation method
      Specified by:
      copy in interface InterpolatePixel<T extends ImageGray<T>>
      Specified by:
      copy in interface InterpolatePixelMB<T extends ImageGray<T>>
    • 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
    • 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>>
    • 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
    • getImageType

      public ImageType<T> getImageType()
      Description copied from interface: InterpolatePixel
      Type of image it can process
      Specified by:
      getImageType in interface InterpolatePixel<T extends ImageGray<T>>