javax.media.jai.iterator.RectIter.nextBandDone()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中javax.media.jai.iterator.RectIter.nextBandDone方法的一些代码示例,展示了RectIter.nextBandDone的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RectIter.nextBandDone方法的具体详情如下:
包路径:javax.media.jai.iterator.RectIter
类名称:RectIter
方法名:nextBandDone

RectIter.nextBandDone介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

/**
 * Sets the iterator to the next band in the image, and returns {@code true} if the max band has
 * been exceeded.
 */
public boolean nextBandDone() {
  boolean check = src.nextBandDone();
  if (check == dst.nextBandDone()) {
    return check;
  }
  throw new RasterFormatException(ERROR);
}

代码示例来源:origin: com.googlecode.jaitools/jt-contour

/**
 * 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);
  }
}

代码示例来源:origin: org.jaitools/jt-contour

/**
 * 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);
  }
}

代码示例来源:origin: org.geotools/gt2-coverageio

/**
 * 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;
}

代码示例来源:origin: org.geotools/gt-coverage

/**
 * Sets the iterator to the next band in the image,
 * and returns {@code true} if the max band has been exceeded.
 */
public boolean nextBandDone() {
  boolean check = src.nextBandDone();
  if (check == dst.nextBandDone()) {
    return check;
  }
  throw new RasterFormatException(ERROR);
}

代码示例来源:origin: org.geotools/gt2-coverage

/**
 * Sets the iterator to the next band in the image,
 * and returns {@code true} if the max band has been exceeded.
 */
public boolean nextBandDone() {
  boolean check = src.nextBandDone();
  if (check == dst.nextBandDone()) {
    return check;
  }
  throw new RasterFormatException(ERROR);
}

代码示例来源:origin: Geomatys/geotoolkit

/**
 * Sets the iterator to the next band in the image,
 * and returns {@code true} if the max band has been exceeded.
 *
 * @return {@code true} if the iteration over bands is finished.
 */
@Override
public boolean nextBandDone() {
  boolean check = src.nextBandDone();
  if (check == dst.nextBandDone()) {
    return check;
  }
  throw new RasterFormatException(ERROR);
}

代码示例来源:origin: org.geotools/gt2-coverageio

} while (!iterator.nextBandDone());
out.flush();
processImageComplete();

代码示例来源:origin: org.geotools/gt2-coverageio

} while (!iterator.nextLineDone());
  iterator.startLines();
} while (!iterator.nextBandDone());

代码示例来源:origin: org.geotools/gt2-coverage

} while (!iterator.nextBandDone());

代码示例来源:origin: org.geotools/gt2-coverage

} while (!iSrc0.nextBandDone() &&
     !iSrc1.nextBandDone() &&
    !iTarget.nextBandDone());

代码示例来源:origin: Geomatys/geotoolkit

} while (!iSrc0.nextBandDone() &&
     !iSrc1.nextBandDone() &&
    !iTarget.nextBandDone());

代码示例来源:origin: org.geotools/gt-coverage

} while (!iterator.nextBandDone());

代码示例来源:origin: Geomatys/geotoolkit

/**
 * 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());
}

代码示例来源:origin: Geomatys/geotoolkit

assertEquals(pe, pa, SAMPLE_TOLERANCE);
  a.nextBand();
} while (!e.nextBandDone());
assertTrue(a.finishedBands());
a.nextPixel();

相关文章