Package boofcv.alg.interpolate
Interface InterpolatePixelS<T extends ImageGray<T>>
- All Superinterfaces:
InterpolatePixel<T>
- All Known Implementing Classes:
AbstractInterpolatePixelS
,BilinearPixelS
,ImplBilinearPixel_F32
,ImplBilinearPixel_F64
,ImplBilinearPixel_S16
,ImplBilinearPixel_S32
,ImplBilinearPixel_U16
,ImplBilinearPixel_U8
,ImplInterpolatePixelConvolution_F32
,ImplInterpolatePixelConvolution_S16
,ImplInterpolatePixelConvolution_U8
,ImplPolynomialPixel_F32
,ImplPolynomialPixel_I
,InterpolatePixelDistortS
,NearestNeighborPixel_F32
,NearestNeighborPixel_S16
,NearestNeighborPixel_S32
,NearestNeighborPixel_U16
,NearestNeighborPixel_U8
,NearestNeighborPixelS
,PolynomialPixel
Interface for interpolation between pixels on a per-pixel basis for a single band image.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a new instance of this interpolation methodfloat
get
(float x, float y) Returns the interpolated pixel value at the specified location while checking to see if border conditions apply.float
get_fast
(float x, float y) Returns the interpolated pixel value 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
float get(float x, float y) Returns the interpolated pixel value at the specified location while checking to see if border conditions apply. If the requested pixel is outside the image border it will attempt to process it using or throw a null pointer exception of a border handler has not been specified.- Parameters:
x
- Point's x-coordinate. x ≥ 0 && x < image.width or all values if border specifiedy
- Point's y-coordinate. y ≥ 0 && y < image.height or all values if border specified- Returns:
- Interpolated intensity value or NaN if it can't be interpolated.
-
get_fast
float get_fast(float x, float y) Returns the interpolated pixel value 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.- Returns:
- Interpolated intensity value.
-
copy
InterpolatePixelS<T> copy()Creates a new instance of this interpolation method- Specified by:
copy
in interfaceInterpolatePixel<T extends ImageGray<T>>
-