Package boofcv.alg.interpolate.impl
Class NearestNeighborPixel_IL_U16
- java.lang.Object
-
- boofcv.alg.interpolate.NearestNeighborPixelMB<boofcv.struct.image.InterleavedU16>
-
- boofcv.alg.interpolate.impl.NearestNeighborPixel_IL_U16
-
- All Implemented Interfaces:
InterpolatePixel<boofcv.struct.image.InterleavedU16>,InterpolatePixelMB<boofcv.struct.image.InterleavedU16>
public class NearestNeighborPixel_IL_U16 extends NearestNeighborPixelMB<boofcv.struct.image.InterleavedU16>
Performs nearest neighbor interpolation to extract values between pixels in an image.
DO NOT MODIFY. This code was automatically generated by GenerateNearestNeighborPixel_IL.
-
-
Constructor Summary
Constructors Constructor Description NearestNeighborPixel_IL_U16()NearestNeighborPixel_IL_U16(boofcv.struct.image.InterleavedU16 orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatePixelMB<boofcv.struct.image.InterleavedU16>copy()Creates a new instance of this interpolation methodvoidget(float x, float y, float[] values)Returns the interpolated pixel values at the specified location while taking in account the image border.voidget_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.voidsetImage(boofcv.struct.image.InterleavedU16 image)Change the image that is being interpolated.-
Methods inherited from class boofcv.alg.interpolate.NearestNeighborPixelMB
getBorder, getFastBorderX, getFastBorderY, getImage, getImageType, isInFastBounds, setBorder
-
-
-
-
Method Detail
-
setImage
public void setImage(boofcv.struct.image.InterleavedU16 image)
Description copied from interface:InterpolatePixelChange the image that is being interpolated.- Specified by:
setImagein interfaceInterpolatePixel<boofcv.struct.image.InterleavedU16>- Overrides:
setImagein classNearestNeighborPixelMB<boofcv.struct.image.InterleavedU16>- Parameters:
image- An image.
-
get
public void get(float x, float y, float[] values)Description copied from interface:InterpolatePixelMBReturns 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
public void get_fast(float x, float y, float[] values)Description copied from interface:InterpolatePixelMBReturns 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
public InterpolatePixelMB<boofcv.struct.image.InterleavedU16> copy()
Description copied from interface:InterpolatePixelMBCreates a new instance of this interpolation method
-
-