boofcv.alg.interpolate.impl
Class NearestNeighborPixel_U16
- java.lang.Object
-
- boofcv.alg.interpolate.NearestNeighborPixelS<GrayU16>
-
- boofcv.alg.interpolate.impl.NearestNeighborPixel_U16
-
- All Implemented Interfaces:
- InterpolatePixel<GrayU16>, InterpolatePixelS<GrayU16>
public class NearestNeighborPixel_U16 extends NearestNeighborPixelS<GrayU16>
Performs nearest neighbor interpolation to extract values between pixels in an image.
NOTE: This code was automatically generated using
GenerateNearestNeighborPixel.
-
-
Constructor Summary
Constructors Constructor and Description NearestNeighborPixel_U16()NearestNeighborPixel_U16(GrayU16 orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatget_border(float x, float y)floatget_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.floatget(float x, float y)Returns the interpolated pixel value at the specified location while checking to see if border conditions apply.ImageType<GrayU16>getImageType()Type of image it can processvoidsetImage(GrayU16 image)Change the image that is being interpolated.-
Methods inherited from class boofcv.alg.interpolate.NearestNeighborPixelS
getBorder, getFastBorderX, getFastBorderY, getImage, isInFastBounds, setBorder
-
-
-
-
Constructor Detail
-
NearestNeighborPixel_U16
public NearestNeighborPixel_U16()
-
NearestNeighborPixel_U16
public NearestNeighborPixel_U16(GrayU16 orig)
-
-
Method Detail
-
setImage
public void setImage(GrayU16 image)
Description copied from interface:InterpolatePixelChange the image that is being interpolated.- Specified by:
setImagein interfaceInterpolatePixel<GrayU16>- Overrides:
setImagein classNearestNeighborPixelS<GrayU16>- Parameters:
image- An image.
-
get_fast
public float get_fast(float x, float y)Description copied from interface:InterpolatePixelSReturns 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)
-
get
public float get(float x, float y)Description copied from interface:InterpolatePixelSReturns 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.
-
getImageType
public ImageType<GrayU16> getImageType()
Description copied from interface:InterpolatePixelType of image it can process
-
-
DataMelt 3.0 © DataMelt by jWork.ORG