/** Sets the iterator to the first band of the image. */ public void startBands() { src.startBands(); dst.startBands(); }
/** * Sets the iterator to the first band of the image. */ public void startBands() { src.startBands(); dst.startBands(); }
/** * Sets the iterator to the first band of the image. */ public void startBands() { src.startBands(); dst.startBands(); }
/** * Sets the iterator to the first band of the image. */ public void startBands() { bandIndex = 0; iterator.startBands(); for (int skip=sourceBands[0]; --skip>=0;) { iterator.nextBand(); } }
/** * Sets the iterator to the first band of the image. */ @Override public void startBands() { src.startBands(); dst.startBands(); }
/** * Positions an image iterator at the specified band. * * @param iter the iterator * @param targetBand the band */ private void moveIterToBand(RectIter iter, int targetBand) { int iband = 0; iter.startBands(); while(iband < targetBand && !iter.nextBandDone()) { iband++; } if(iband != targetBand) { throw new IllegalArgumentException("Band " + targetBand + " not found, max band is " + iband); } }
/** * Positions an image iterator at the specified band. * * @param iter the iterator * @param targetBand the band */ private void moveIterToBand(RectIter iter, int targetBand) { int iband = 0; iter.startBands(); while(iband < targetBand && !iter.nextBandDone()) { iband++; } if(iband != targetBand) { throw new IllegalArgumentException("Band " + targetBand + " not found, max band is " + iband); } }
/** * Sets the iterator to the next band in the image, and returns * true if the max band has been exceeded. */ public boolean nextBandDone() { int skip = sourceBands[bandIndex]; if (++bandIndex >= sourceBands.length) { return true; } skip = sourceBands[bandIndex] - skip; if (skip < 0) { iterator.startBands(); skip = sourceBands[bandIndex]; } while (--skip >= 0) { if (iterator.nextBandDone()) { return true; } } return false; }
iterator.startBands(); if (!iterator.finishedBands()) do { iterator.startLines();
final WritableRectIter iTarget = RectIterFactory.createWritable(dest, destRect); int band = 0; iSrc0 .startBands(); iSrc1 .startBands(); iTarget.startBands(); if (!iTarget.finishedBands() &&
final WritableRectIter iTarget = RectIterFactory.createWritable(dest, destRect); int band = 0; iSrc0 .startBands(); iSrc1 .startBands(); iTarget.startBands(); if (!iTarget.finishedBands() &&
iterator.startBands(); if (!iterator.finishedBands()) do { iterator.startLines();
/** * Ensures that all sample values in every bands are either inside the given range, * or {@link Double#NaN}. * * @param minimum The lower bound of the range, inclusive. * @param maximum The upper bound of the range, inclusive. * @param image The image to test. * * @since 3.19 */ public static void assertSampleValuesInRange(final double minimum, final double maximum, final RenderedImage image) { final RectIter it = RectIterFactory.create(image, null); if (!it.finishedLines()) do { if (!it.finishedPixels()) do { if (!it.finishedBands()) do { final double value = it.getSampleDouble(); assertBetween("Sample value", minimum, maximum, value); } while (!it.nextBandDone()); it.startBands(); } while (!it.nextPixelDone()); it.startPixels(); } while (!it.nextLineDone()); }
Raster ras = classifier.getTile(tileX, tileY); rectIterator = RectIterFactory.create(ras, computableArea); rectIterator.startBands(); rectIterator.startLines();
Raster ras = classifier.getTile(tileX, tileY); rectIterator = RectIterFactory.create(ras, computableArea); rectIterator.startBands(); rectIterator.startLines();
Raster ras = classifier.getTile(tileX, tileY); rectIterator = RectIterFactory.create(ras, computableArea); rectIterator.startBands(); rectIterator.startLines();
Raster ras = classifier.getTile(tileX, tileY); rectIterator = RectIterFactory.create(ras, computableArea); rectIterator.startBands(); rectIterator.startLines();
Raster ras = classifier.getTile(tileX, tileY); rectIterator = RectIterFactory.create(ras, computableArea); rectIterator.startBands(); rectIterator.startLines();
Raster ras = classifier.getTile(tileX, tileY); rectIterator = RectIterFactory.create(ras, computableArea); rectIterator.startBands(); rectIterator.startLines();
assertTrue(a.finishedBands()); a.nextPixel(); a.startBands(); e.startBands(); } while (!e.nextPixelDone()); assertTrue(a.finishedPixels());