Documentation of 'boofcv.alg.interpolate.InterpolatePixel_S_to_MB' Java class
InterpolatePixel_S_to_MB
boofcv.alg.interpolate

Class InterpolatePixel_S_to_MB<T extends ImageGray>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      void get(float x, float y, float[] values)
      Returns the interpolated pixel values at the specified location while taking in account the image 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.
      ImageType<T> getImageType()
      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 setBorder(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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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>
        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>
        Parameters:
        x - Point's x-coordinate.
        y - Point's y-coordinate.
        values - Interpolated value across all bands.
      • 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>
        Parameters:
        border - Class for reading outside the image border
      • 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>
        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>
        Parameters:
        x - Point's x-coordinate.
        y - Point's y-coordinate.
        Returns:
        true if get_unsafe() can be called.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.