Package boofcv.alg.interpolate.impl
Class ImplInterpolatePixelConvolution_S16
java.lang.Object
boofcv.alg.interpolate.impl.ImplInterpolatePixelConvolution_S16
- All Implemented Interfaces:
InterpolatePixel<GrayS16>
,InterpolatePixelS<GrayS16>
@Generated("boofcv.alg.interpolate.impl.GenerateImplInterpolatePixelConvolution")
public class ImplInterpolatePixelConvolution_S16
extends Object
implements InterpolatePixelS<GrayS16>
Performs interpolation by convolving a continuous-discrete function across the image. Borders are handled by re-normalizing. It is assumed that the kernel will sum up to one. This is particularly important for the unsafe_get() function which does not re-normalize.
DO NOT MODIFY. Automatically generated code created by GenerateImplInterpolatePixelConvolution
-
Constructor Summary
ConstructorDescriptionImplInterpolatePixelConvolution_S16
(KernelContinuous1D_F32 kernel, float min, float max) -
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.Returns 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.Type of image it can processboolean
isInFastBounds
(float x, float y) Is the requested pixel inside the image boundary for which fast unsafe interpolation can be performed.void
setBorder
(ImageBorder<GrayS16> border) Set's the class used to "read" pixels outside the image border.void
Change the image that is being interpolated.
-
Constructor Details
-
ImplInterpolatePixelConvolution_S16
-
-
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<GrayS16>
- 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<GrayS16>
- Parameters:
image
- An image.
-
getImage
Description copied from interface:InterpolatePixel
Returns the image which is being interpolated.- Specified by:
getImage
in interfaceInterpolatePixel<GrayS16>
- Returns:
- A reference to the image being interpolated.
-
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.- Specified by:
get
in interfaceInterpolatePixelS<GrayS16>
- 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_border
public float get_border(float x, float y) -
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.- Specified by:
get_fast
in interfaceInterpolatePixelS<GrayS16>
- Parameters:
x
- Point's x-coordinate.y
- Point's y-coordinate.- Returns:
- Interpolated intensity value.
-
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<GrayS16>
- 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<GrayS16>
- 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<GrayS16>
- Returns:
- Border size in pixels
-
getBorder
Description copied from interface:InterpolatePixel
Returns the class which handles the image border- Specified by:
getBorder
in interfaceInterpolatePixel<GrayS16>
-
copy
Description copied from interface:InterpolatePixelS
Creates a new instance of this interpolation method- Specified by:
copy
in interfaceInterpolatePixel<GrayS16>
- Specified by:
copy
in interfaceInterpolatePixelS<GrayS16>
-
getImageType
Description copied from interface:InterpolatePixel
Type of image it can process- Specified by:
getImageType
in interfaceInterpolatePixel<GrayS16>
-