Class PolynomialPixel<T extends boofcv.struct.image.ImageGray<T>>

  • All Implemented Interfaces:
    InterpolatePixel<T>, InterpolatePixelS<T>
    Direct Known Subclasses:
    ImplPolynomialPixel_F32, ImplPolynomialPixel_I

    public abstract class PolynomialPixel<T extends boofcv.struct.image.ImageGray<T>>
    extends java.lang.Object
    implements InterpolatePixelS<T>

    Polynomial interpolation using Neville's algorithm. First interpolation is performed along the horizontal axis, centered at the specified x-coordinate. Then a second pass is done along the vertical axis using the output from the first pass.

    The code is unoptimized and the algorithm is relatively expensive.

    • Constructor Summary

      Constructors 
      Constructor Description
      PolynomialPixel​(int maxDegree, float min, float max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boofcv.struct.border.ImageBorder<T> getBorder()
      Returns the class which handles the image border
      int getFastBorderX()
      Border around the image that fast interpolation cannot be called.
      int getFastBorderY()
      Border around the image that fast interpolation cannot be called.
      T getImage()
      Returns the image which is being interpolated.
      boolean isInFastBounds​(float x, float y)
      Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.
      void setBorder​(boofcv.struct.border.ImageBorder<T> border)
      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
    • Field Detail

      • border

        protected boofcv.struct.border.ImageBorder<T extends boofcv.struct.image.ImageGray<T>> border
      • image

        protected T extends boofcv.struct.image.ImageGray<T> image
      • M

        protected int M
      • offM

        protected int offM
      • horiz

        protected float[] horiz
      • vert

        protected float[] vert
      • min

        protected float min
      • max

        protected float max
    • Constructor Detail

      • PolynomialPixel

        public PolynomialPixel​(int maxDegree,
                               float min,
                               float max)
    • Method Detail

      • setBorder

        public void setBorder​(boofcv.struct.border.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 boofcv.struct.image.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 boofcv.struct.image.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 boofcv.struct.image.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 boofcv.struct.image.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 boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>>
        Returns:
        Border size in pixels
      • getBorder

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