/** Returns {@code true} if the max band in the image has been exceeded. */ public boolean finishedBands() { boolean check = src.finishedBands(); if (check == dst.finishedBands()) { return check; } throw new RasterFormatException(ERROR); }
/** * Returns true if the max band in the image has been exceeded. */ public boolean finishedBands() { return iterator.finishedBands(); }
/** * Returns {@code true} if the max band in the image has been exceeded. */ public boolean finishedBands() { boolean check = src.finishedBands(); if (check == dst.finishedBands()) { return check; } throw new RasterFormatException(ERROR); }
/** * Returns {@code true} if the max band in the image has been exceeded. */ public boolean finishedBands() { boolean check = src.finishedBands(); if (check == dst.finishedBands()) { return check; } throw new RasterFormatException(ERROR); }
/** * Returns {@code true} if the max band in the image has been exceeded. * * @return {@code true} if the iteration over bands is finished. */ @Override public boolean finishedBands() { boolean check = src.finishedBands(); if (check == dst.finishedBands()) { return check; } throw new RasterFormatException(ERROR); }
final float progressScale = 100f / size.getNumSampleValues(); int numSampleValues = 0, nextProgress = 0; if (!iterator.finishedBands()) do { if (!iterator.finishedLines()) do { if (numSampleValues >= nextProgress) {
maximum = Double.NEGATIVE_INFINITY; final RectIter iterator = createRectIter(image, parameters); if (!iterator.finishedBands()) do { if (!iterator.finishedLines()) do { if (!iterator.finishedPixels()) do {
if (!iterator.finishedBands()) do { iterator.startLines(); if (!iterator.finishedLines()) do {
iTarget.startBands(); if (!iTarget.finishedBands() && !iSrc0 .finishedBands() && !iSrc1 .finishedBands())
iTarget.startBands(); if (!iTarget.finishedBands() && !iSrc0 .finishedBands() && !iSrc1 .finishedBands())
if (!dstIter.finishedBands() && !srcIter.finishedBands()) { for (int i = 0; i < bandIndex; i++) { dstIter.nextBand(); if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands()); } else { int bandNumber = 0; if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands());
if (!dstIter.finishedBands() && !srcIter.finishedBands()) { for (int i = 0; i < bandIndex; i++) { dstIter.nextBand(); if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands()); } else { int bandNumber = 0; if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands());
RectIter srcIter = RectIterFactory.create(source, destRect); if (!dstIter.finishedBands() && !srcIter.finishedBands()) { for (int i = 0; i < bandIndex; i++) { dstIter.nextBand(); } while (dstIter.finishedBands() && srcIter.finishedBands()); } else if (caseB) { do { if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands()); } else if (caseC || (hasROI && hasNoData && roiContainsTile)) { do { } while (dstIter.finishedBands() && srcIter.finishedBands()); } else { do { if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands());
RectIter srcIter = RectIterFactory.create(source, destRect); if (!dstIter.finishedBands() && !srcIter.finishedBands()) { for (int i = 0; i < bandIndex; i++) { dstIter.nextBand(); } while (dstIter.finishedBands() && srcIter.finishedBands()); } else if (caseB) { do { if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands()); } else if (caseC || (hasROI && hasNoData && roiContainsTile)) { do { } while (dstIter.finishedBands() && srcIter.finishedBands()); } else { do { if (bandIndex != -1) break; } while (dstIter.finishedBands() && srcIter.finishedBands());
if (!iterator.finishedBands()) do { iterator.startLines(); if (!iterator.finishedLines()) do {
/** * 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()); }
if (!e.finishedPixels()) do { assertFalse(a.finishedPixels()); if (!e.finishedBands()) do { assertFalse(a.finishedBands()); final float pe = e.getSampleFloat(); final float pa = a.getSampleFloat(); a.nextBand(); } while (!e.nextBandDone()); assertTrue(a.finishedBands()); a.nextPixel(); a.startBands();