public float getSampleFloat(int x, int y, int b) { makeCurrent(x - boundsX, y - boundsY); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x - boundsX, y - boundsY); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x - boundsX, y - boundsY); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x - boundsX, y - boundsY); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x, y); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x, y); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x - boundsX, y - boundsY); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
public float getSampleFloat(int x, int y, int b) { makeCurrent(x - boundsX, y - boundsY); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, dataBuffer); }
private float interpolate(float wx, float wy, Raster raster, int latLon) { final float min = (latLon == LAT) ? LAT_MIN : LON_MIN; final float max = (latLon == LAT) ? LAT_MAX : LON_MAX; final int x0 = raster.getMinX() - raster.getSampleModelTranslateX(); final int x1 = x0 + 1; final int y0 = raster.getMinY() - raster.getSampleModelTranslateY(); final int y1 = y0 + 1; DataBuffer dataBuffer = raster.getDataBuffer(); SampleModel sampleModel = raster.getSampleModel(); final float d00 = sampleModel.getSampleFloat(x0, y0, 0, dataBuffer); if (d00 >= min && d00 <= max) { final float d10 = sampleModel.getSampleFloat(x1, y0, 0, dataBuffer); if (d10 >= min && d10 <= max) { final float d01 = sampleModel.getSampleFloat(x0, y1, 0, dataBuffer); if (d01 >= min && d01 <= max) { final float d11 = sampleModel.getSampleFloat(x1, y1, 0, dataBuffer); if (d11 >= min && d11 <= max) { if (latLon == LAT) { return MathUtils.interpolate2D(wx, wy, d00, d10, d01, d11); } else { return GeoCodingFactory.interpolateLon(wx, wy, d00, d10, d01, d11); } } } } } return d00; }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile final Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile final Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }
public float getSampleFloat(int x, int y, int b) { // get tile Raster tile = makeCurrent(x - boundsX, y - boundsY); // get value final int sampleModelTranslateX = tile.getSampleModelTranslateX(); final int sampleModelTranslateY = tile.getSampleModelTranslateY(); return sampleModel.getSampleFloat(x - sampleModelTranslateX, y - sampleModelTranslateY, b, tile.getDataBuffer()); }