Package boofcv.alg.interpolate
Interface InterpolatePixelMB<T extends ImageBase<T>>
- All Superinterfaces:
InterpolatePixel<T>
- All Known Implementing Classes:
BilinearPixelMB
,ImplBilinearPixel_IL_F32
,ImplBilinearPixel_IL_F64
,ImplBilinearPixel_IL_S16
,ImplBilinearPixel_IL_S32
,ImplBilinearPixel_IL_U16
,ImplBilinearPixel_IL_U8
,InterpolatePixel_PL_using_SB
,InterpolatePixel_S_to_MB
,NearestNeighborPixel_IL_F32
,NearestNeighborPixel_IL_S16
,NearestNeighborPixel_IL_S32
,NearestNeighborPixel_IL_U16
,NearestNeighborPixel_IL_U8
,NearestNeighborPixelMB
Interface for interpolation between pixels on a per-pixel basis for a multi-band image.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a new instance of this interpolation methodvoid
get
(float x, float y, float[] values) Returns the interpolated pixel values at the specified location while taking in account the image border.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.Methods inherited from interface boofcv.alg.interpolate.InterpolatePixel
getBorder, getFastBorderX, getFastBorderY, getImage, getImageType, isInFastBounds, setBorder, setImage
-
Method Details
-
get
void get(float x, float y, float[] values) 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.- Parameters:
x
- Point's x-coordinate. x ≥ 0 && x < image.widthy
- Point's y-coordinate. y ≥ 0 && y < image.heightvalues
- Interpolated value across all bands.
-
get_fast
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. For any input pointInterpolatePixel.isInFastBounds(float, float)
should return true.- Parameters:
x
- Point's x-coordinate.y
- Point's y-coordinate.values
- Interpolated value across all bands.
-
copy
InterpolatePixelMB<T> copy()Creates a new instance of this interpolation method- Specified by:
copy
in interfaceInterpolatePixel<T extends ImageBase<T>>
-