row[i++] = iter.getSampleDouble(band);
}
while (!iter.nextPixelDone());
assert i == row.length;
}
while (!iter.nextLineDone());
assert j == samples.length;
float dx = (float)(x-x0); if (dx==1) dx=ONE_EPSILON;
float dy = (float)(y-y0); if (dy==1) dy=ONE_EPSILON;
final double value = interpolation.interpolate(samples, dx, dy);
if (Double.isNaN(value)) {