public class NearestNeighborPixel_IL_U8 extends NearestNeighborPixelMB<InterleavedU8>
Performs nearest neighbor interpolation to extract values between pixels in an image.
NOTE: This code was automatically generated using GenerateNearestNeighborPixel_IL.
| Constructor and Description |
|---|
NearestNeighborPixel_IL_U8() |
NearestNeighborPixel_IL_U8(InterleavedU8 orig) |
| Modifier and Type | Method and Description |
|---|---|
void |
get_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.
|
void |
get(float x,
float y,
float[] values)
Returns the interpolated pixel values at the specified location while taking in account
the image border.
|
void |
setImage(InterleavedU8 image)
Change the image that is being interpolated.
|
getBorder, getFastBorderX, getFastBorderY, getImage, getImageType, isInFastBounds, setBorderpublic NearestNeighborPixel_IL_U8()
public NearestNeighborPixel_IL_U8(InterleavedU8 orig)
public void setImage(InterleavedU8 image)
InterpolatePixelsetImage in interface InterpolatePixel<InterleavedU8>setImage in class NearestNeighborPixelMB<InterleavedU8>image - An image.public void get(float x,
float y,
float[] values)
InterpolatePixelMBx - Point's x-coordinate. x >= 0 && x < image.widthy - Point's y-coordinate. y >= 0 && y < image.heightvalues - Interpolated value across all bands.public void get_fast(float x,
float y,
float[] values)
InterpolatePixelMBInterpolatePixel.isInFastBounds(float, float) should return true.x - Point's x-coordinate.y - Point's y-coordinate.values - Interpolated value across all bands.