public class NearestNeighborPixel_IL_S32 extends NearestNeighborPixelMB<InterleavedS32>
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_S32() |
NearestNeighborPixel_IL_S32(InterleavedS32 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(InterleavedS32 image)
Change the image that is being interpolated.
|
getBorder, getFastBorderX, getFastBorderY, getImage, getImageType, isInFastBounds, setBorderpublic NearestNeighborPixel_IL_S32()
public NearestNeighborPixel_IL_S32(InterleavedS32 orig)
public void setImage(InterleavedS32 image)
InterpolatePixelsetImage in interface InterpolatePixel<InterleavedS32>setImage in class NearestNeighborPixelMB<InterleavedS32>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.