boofcv.alg.interpolate
Class BilinearPixelMB<T extends ImageInterleaved>
- java.lang.Object
-
- boofcv.alg.interpolate.BilinearPixelMB<T>
-
- All Implemented Interfaces:
- InterpolatePixel<T>, InterpolatePixelMB<T>
- Direct Known Subclasses:
- ImplBilinearPixel_IL_F32, ImplBilinearPixel_IL_F64, ImplBilinearPixel_IL_S16, ImplBilinearPixel_IL_S32, ImplBilinearPixel_IL_U8
public abstract class BilinearPixelMB<T extends ImageInterleaved> extends java.lang.Object implements InterpolatePixelMB<T>
Performs bilinear interpolation to extract values between pixels in an image. When a boundary is encountered the number of pixels used to interpolate is automatically reduced.
-
-
Constructor Summary
Constructors Constructor and Description BilinearPixelMB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ImageBorder<T>getBorder()Returns the class which handles the image borderintgetFastBorderX()Border around the image that fast interpolation cannot be called.intgetFastBorderY()Border around the image that fast interpolation cannot be called.TgetImage()Returns the image which is being interpolated.booleanisInFastBounds(float x, float y)Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.voidsetBorder(ImageBorder<T> border)Set's the class used to "read" pixels outside the image border.voidsetImage(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
-
Methods inherited from interface boofcv.alg.interpolate.InterpolatePixelMB
get_fast, get
-
Methods inherited from interface boofcv.alg.interpolate.InterpolatePixel
getImageType
-
-
-
-
Method Detail
-
setBorder
public void setBorder(ImageBorder<T> border)
Description copied from interface:InterpolatePixelSet's the class used to "read" pixels outside the image border.- Specified by:
setBorderin interfaceInterpolatePixel<T extends ImageInterleaved>- Parameters:
border- Class for reading outside the image border
-
setImage
public void setImage(T image)
Description copied from interface:InterpolatePixelChange the image that is being interpolated.- Specified by:
setImagein interfaceInterpolatePixel<T extends ImageInterleaved>- Parameters:
image- An image.
-
getImage
public T getImage()
Description copied from interface:InterpolatePixelReturns the image which is being interpolated.- Specified by:
getImagein interfaceInterpolatePixel<T extends ImageInterleaved>- Returns:
- A reference to the image being interpolated.
-
isInFastBounds
public boolean isInFastBounds(float x, float y)Description copied from interface:InterpolatePixelIs the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.- Specified by:
isInFastBoundsin interfaceInterpolatePixel<T extends ImageInterleaved>- Parameters:
x- Point's x-coordinate.y- Point's y-coordinate.- Returns:
- true if get_unsafe() can be called.
-
getFastBorderX
public int getFastBorderX()
Description copied from interface:InterpolatePixelBorder around the image that fast interpolation cannot be called.- Specified by:
getFastBorderXin interfaceInterpolatePixel<T extends ImageInterleaved>- Returns:
- Border size in pixels
-
getFastBorderY
public int getFastBorderY()
Description copied from interface:InterpolatePixelBorder around the image that fast interpolation cannot be called.- Specified by:
getFastBorderYin interfaceInterpolatePixel<T extends ImageInterleaved>- Returns:
- Border size in pixels
-
getBorder
public ImageBorder<T> getBorder()
Description copied from interface:InterpolatePixelReturns the class which handles the image border- Specified by:
getBorderin interfaceInterpolatePixel<T extends ImageInterleaved>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG