Package boofcv.alg.interpolate
Class BilinearPixelMB<T extends ImageInterleaved<T>>
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_U16
,ImplBilinearPixel_IL_U8
public abstract class BilinearPixelMB<T extends ImageInterleaved<T>>
extends 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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the class which handles the image borderint
Border around the image that fast interpolation cannot be called.int
Border around the image that fast interpolation cannot be called.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
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
Methods inherited from interface boofcv.alg.interpolate.InterpolatePixel
getImageType
Methods inherited from interface boofcv.alg.interpolate.InterpolatePixelMB
copy, get, get_fast
-
Field Details
-
border
-
orig
-
stride
protected int stride -
width
protected int width -
height
protected int height
-
-
Constructor Details
-
BilinearPixelMB
public BilinearPixelMB()
-
-
Method Details
-
setBorder
Description copied from interface:InterpolatePixel
Set's the class used to "read" pixels outside the image border.- Specified by:
setBorder
in interfaceInterpolatePixel<T extends ImageInterleaved<T>>
- Parameters:
border
- Class for reading outside the image border
-
setImage
Description copied from interface:InterpolatePixel
Change the image that is being interpolated.- Specified by:
setImage
in interfaceInterpolatePixel<T extends ImageInterleaved<T>>
- Parameters:
image
- An image.
-
getImage
Description copied from interface:InterpolatePixel
Returns the image which is being interpolated.- Specified by:
getImage
in interfaceInterpolatePixel<T extends ImageInterleaved<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 interfaceInterpolatePixel<T extends ImageInterleaved<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 interfaceInterpolatePixel<T extends ImageInterleaved<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 interfaceInterpolatePixel<T extends ImageInterleaved<T>>
- Returns:
- Border size in pixels
-
getBorder
Description copied from interface:InterpolatePixel
Returns the class which handles the image border- Specified by:
getBorder
in interfaceInterpolatePixel<T extends ImageInterleaved<T>>
-