Class NearestNeighborRectangle_F32

  • All Implemented Interfaces:
    InterpolateRectangle<boofcv.struct.image.GrayF32>

    public class NearestNeighborRectangle_F32
    extends java.lang.Object
    implements InterpolateRectangle<boofcv.struct.image.GrayF32>
    Nearest Neighbor interpolation for a rectangular region
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boofcv.struct.image.GrayF32 getImage()
      Returns the image which is being interpolated.
      void region​(float tl_x, float tl_y, boofcv.struct.image.GrayF32 dest)
      Copies a grid from the source image starting at the specified coordinate into the destination image.
      void setImage​(boofcv.struct.image.GrayF32 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 Detail

      • NearestNeighborRectangle_F32

        public NearestNeighborRectangle_F32()
    • Method Detail

      • setImage

        public void setImage​(boofcv.struct.image.GrayF32 image)
        Description copied from interface: InterpolateRectangle
        Change the image that is being interpolated.
        Specified by:
        setImage in interface InterpolateRectangle<boofcv.struct.image.GrayF32>
        Parameters:
        image - An image.
      • getImage

        public boofcv.struct.image.GrayF32 getImage()
        Description copied from interface: InterpolateRectangle
        Returns the image which is being interpolated.
        Specified by:
        getImage in interface InterpolateRectangle<boofcv.struct.image.GrayF32>
        Returns:
        A reference to the image being interpolated.
      • region

        public void region​(float tl_x,
                           float tl_y,
                           boofcv.struct.image.GrayF32 dest)
        Description copied from interface: InterpolateRectangle
        Copies a grid from the source image starting at the specified coordinate into the destination image. The 'dest' image must be within the original image.
        Specified by:
        region in interface InterpolateRectangle<boofcv.struct.image.GrayF32>
        Parameters:
        tl_x - upper left corner of the region in the image.
        tl_y - upper left corner of the region in the image.
        dest - Where the interpolated region is to be copied into