public class NearestNeighborPixel_F32 extends NearestNeighborPixelS<boofcv.struct.image.GrayF32>
Performs nearest neighbor interpolation to extract values between pixels in an image.
DO NOT MODIFY. This code was automatically generated by GenerateNearestNeighborPixel_SB.
| Constructor and Description |
|---|
NearestNeighborPixel_F32() |
NearestNeighborPixel_F32(boofcv.struct.image.GrayF32 orig) |
| Modifier and Type | Method and Description |
|---|---|
InterpolatePixelS<boofcv.struct.image.GrayF32> |
copy()
Creates a new instance of this interpolation method
|
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.
|
float |
get(float x,
float y)
Returns the interpolated pixel value at the specified location while checking to see if
border conditions apply.
|
boofcv.struct.image.ImageType<boofcv.struct.image.GrayF32> |
getImageType()
Type of image it can process
|
void |
setImage(boofcv.struct.image.GrayF32 image)
Change the image that is being interpolated.
|
getBorder, getFastBorderX, getFastBorderY, getImage, isInFastBounds, setBorderpublic NearestNeighborPixel_F32()
public NearestNeighborPixel_F32(boofcv.struct.image.GrayF32 orig)
public void setImage(boofcv.struct.image.GrayF32 image)
InterpolatePixelsetImage in interface InterpolatePixel<boofcv.struct.image.GrayF32>setImage in class NearestNeighborPixelS<boofcv.struct.image.GrayF32>image - An image.public float get_fast(float x,
float y)
InterpolatePixelSInterpolatePixel.isInFastBounds(float, float) should return true.x - Point's x-coordinate.y - Point's y-coordinate.public float get_border(float x,
float y)
public float get(float x,
float y)
InterpolatePixelSx - 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 specifiedpublic InterpolatePixelS<boofcv.struct.image.GrayF32> copy()
InterpolatePixelSpublic boofcv.struct.image.ImageType<boofcv.struct.image.GrayF32> getImageType()
InterpolatePixel