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

Class NearestNeighborPixelS<T extends ImageGray>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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(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

      • NearestNeighborPixelS

        public NearestNeighborPixelS()
    • Method Detail

      • 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.