il.setHeight(dstBounds.height); il.setTileWidth(op.getTileWidth()); il.setTileWidth(op.getTileHeight()); localHints.add(new RenderingHints(JAI.KEY_IMAGE_LAYOUT, il));
layout.setHeight(h); layout.setTileWidth(op.getTileWidth()); layout.setTileHeight(op.getTileHeight()); RenderingHints hints = op.getRenderingHints(); hints.add(new RenderingHints(JAI.KEY_IMAGE_LAYOUT, layout)); il.setHeight(dstBounds.height); il.setTileWidth(op.getTileWidth()); il.setTileHeight(op.getTileHeight()); localHints.put(JAI.KEY_IMAGE_LAYOUT, il);
final int tileHeight = image.getTileHeight(); final int tileWidth = image.getTileWidth();
int tileHeight = at.getTileHeight(); ImageUtilities.disposeSinglePlanarImage(at); Rectangle sourceBB = (Rectangle) sourceBoundsProperty;
private RenderedOp getBandSourceImage(int i) { RenderedOp bandImage = BandSelectDescriptor.create(sourceImage, new int[]{i}, null); int tileWidth = bandImage.getTileWidth(); int tileHeight = bandImage.getTileHeight(); ImageLayout imageLayout = new ImageLayout(); boolean noSourceImageTiling = tileWidth == bandImage.getWidth() && tileHeight == bandImage.getHeight(); if (noSourceImageTiling) { tileWidth = Math.min(bandImage.getWidth(), 512); tileHeight = Math.min(bandImage.getHeight(), 512); imageLayout.setTileWidth(tileWidth); imageLayout.setTileHeight(tileHeight); } imageLayout.setSampleModel(new SingleBandedSampleModel(bandImage.getSampleModel().getDataType(), tileWidth, tileHeight)); bandImage = FormatDescriptor.create(bandImage, bandImage.getSampleModel().getDataType(), new RenderingHints(JAI.KEY_IMAGE_LAYOUT, imageLayout)); return bandImage; }
RenderedOp bandImage = getBandSourceImage(i); if (i == 0){ product.setPreferredTileSize(bandImage.getTileWidth(), bandImage.getTileHeight());
final int tileHeight = image.getTileHeight(); final int tileWidth = image.getTileWidth();
final int tileHeight = image.getTileHeight(); final int tileWidth = image.getTileWidth();
assertEquals(0, image.getMinY()); assertEquals(10, image.getTileWidth()); assertEquals(10, image.getTileHeight()); for (int x = 0; x < image.getNumXTiles(); x++) { for (int y = 0; y < image.getNumYTiles(); y++) {
int tileHeight = shaded.getTileHeight(); int minTileX = shaded.getMinTileX(); int minTileY = shaded.getMinTileY();
private void check(RenderedImage src, RenderedOp dest, double[] low, double[] high, double[] con, boolean roiUsed, ROI roi, boolean nodataUsed, Range noData) { int tileWidth = dest.getTileWidth(); int tileHeight = dest.getTileHeight(); int minTileX = dest.getMinTileX(); int minTileY = dest.getMinTileY();
private void check(RenderedImage src, RenderedOp clamped, double[] low, double[] high, boolean roiUsed, ROI roi, boolean nodataUsed, Range noData) { int tileWidth = clamped.getTileWidth(); int tileHeight = clamped.getTileHeight(); int minTileX = clamped.getMinTileX(); int minTileY = clamped.getMinTileY();