public class NearestNeighborInterpolator extends PixelInterpolator
Constructor and Description |
---|
NearestNeighborInterpolator() |
Modifier and Type | Method and Description |
---|---|
float |
getInterpolatedValue(ImageAccessor.Scalar ia,
double x,
double y)
All interpolator classes must implement this method.
|
create, create
public NearestNeighborInterpolator()
public float getInterpolatedValue(ImageAccessor.Scalar ia, double x, double y)
PixelInterpolator
getInterpolatedValue
in class PixelInterpolator
ia
- Accessor to the interpolated image.x
- Continuous interpolation position (horiz.)y
- Continuous interpolation position (vert.)Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)