@Override protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect) { for (int y = destRect.y, iy = 0; iy < destRect.height; y++, iy++) { for (int x = destRect.x, ix = 0; ix < destRect.width; x++, ix++) { final double value = runtime.evaluate(x, y); dest.setSample(x, y, band, value); } } }
String name = entry.getKey(); ImageSpecification spec = entry.getValue(); runtime.setSourceImage(name, spec.image, spec.coordinateTransform); if (spec.bandTransform != null) { runtime.setSourceImageBandTransform(name, spec.bandTransform); layout.getWidth(null), layout.getHeight(null)); runtime.setWorldByResolution(bounds, 1, 1);
protected void testIndirectRuntime(RenderedImage srcImg, JiffleIndirectRuntime runtime, Evaluator evaluator) { runtime.setSourceImage("src", srcImg); do { double expected = evaluator.eval(srcIter.getSampleDouble()); double actual = runtime.evaluate(x, y); assertEquals( "Got " for (double x = minX; x < maxX; x ++) { double expected = evaluator.eval(0); double actual = runtime.evaluate(x, y); assertEquals( "Got "
String name = entry.getKey(); ImageSpecification spec = entry.getValue(); runtime.setSourceImage(name, spec.image, spec.coordinateTransform); if (spec.bandTransform != null) { runtime.setSourceImageBandTransform(name, spec.bandTransform); layout.getWidth(null), layout.getHeight(null)); runtime.setWorldByResolution(bounds, 1, 1);
@Override protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect) { for (int y = destRect.y, iy = 0; iy < destRect.height; y++, iy++) { for (int x = destRect.x, ix = 0; ix < destRect.width; x++, ix++) { final double value = runtime.evaluate(x, y); dest.setSample(x, y, band, value); } } }