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, createpublic NearestNeighborInterpolator()
public float getInterpolatedValue(ImageAccessor.Scalar ia, double x, double y)
PixelInterpolatorgetInterpolatedValue in class PixelInterpolatoria - 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)