Package boofcv.alg.interpolate.impl
Class ImplPolynomialPixel_I<T extends GrayI<T>>
java.lang.Object
boofcv.alg.interpolate.PolynomialPixel<T>
boofcv.alg.interpolate.impl.ImplPolynomialPixel_I<T>
- All Implemented Interfaces:
InterpolatePixel<T>
,InterpolatePixelS<T>
Implementation of PolynomialPixel
.
NOTE: This code was automatically generated using GenerateImplPolynomialPixel
.
-
Field Summary
-
Constructor Summary
-
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_border
(float x, float y) 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.Type of image it can processMethods inherited from class boofcv.alg.interpolate.PolynomialPixel
getBorder, getFastBorderX, getFastBorderY, getImage, isInFastBounds, setBorder, setImage
-
Constructor Details
-
ImplPolynomialPixel_I
public ImplPolynomialPixel_I(int maxDegree, float min, float max)
-
-
Method Details
-
get
public float get(float x, float y) Description copied from interface:InterpolatePixelS
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
public float get_fast(float x, float y) Description copied from interface:InterpolatePixelS
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.
-
get_border
public float get_border(float x, float y) -
copy
Description copied from interface:InterpolatePixelS
Creates a new instance of this interpolation method -
getImageType
Description copied from interface:InterpolatePixel
Type of image it can process
-