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

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

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

RectIter.startBands介绍

暂无

代码示例

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

/** Sets the iterator to the first band of the image. */
public void startBands() {
  src.startBands();
  dst.startBands();
}

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

/**
 * Sets the iterator to the first band of the image.
 */
public void startBands() {
  src.startBands();
  dst.startBands();
}

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

/**
 * Sets the iterator to the first band of the image.
 */
public void startBands() {
  src.startBands();
  dst.startBands();
}

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

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

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

/**
 * Sets the iterator to the first band of the image.
 */
@Override
public void startBands() {
  src.startBands();
  dst.startBands();
}

代码示例来源: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/gt2-coverage

iterator.startBands();
if (!iterator.finishedBands()) do {
  iterator.startLines();

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

final WritableRectIter iTarget = RectIterFactory.createWritable(dest, destRect);
int band = 0;
iSrc0  .startBands();
iSrc1  .startBands();
iTarget.startBands();
if (!iTarget.finishedBands() &&

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

final WritableRectIter iTarget = RectIterFactory.createWritable(dest, destRect);
int band = 0;
iSrc0  .startBands();
iSrc1  .startBands();
iTarget.startBands();
if (!iTarget.finishedBands() &&

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

iterator.startBands();
if (!iterator.finishedBands()) do {
  iterator.startLines();

代码示例来源: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: it.geosolutions.jaiext.zonal/jt-zonal

Raster ras = classifier.getTile(tileX, tileY);
rectIterator = RectIterFactory.create(ras, computableArea);
rectIterator.startBands();
rectIterator.startLines();

代码示例来源:origin: it.geosolutions.jaiext.zonal/jt-zonal

Raster ras = classifier.getTile(tileX, tileY);
rectIterator = RectIterFactory.create(ras, computableArea);
rectIterator.startBands();
rectIterator.startLines();

代码示例来源:origin: it.geosolutions.jaiext.zonal/jt-zonal

Raster ras = classifier.getTile(tileX, tileY);
rectIterator = RectIterFactory.create(ras, computableArea);
rectIterator.startBands();
rectIterator.startLines();

代码示例来源:origin: it.geosolutions.jaiext.zonal/jt-zonal

Raster ras = classifier.getTile(tileX, tileY);
rectIterator = RectIterFactory.create(ras, computableArea);
rectIterator.startBands();
rectIterator.startLines();

代码示例来源:origin: it.geosolutions.jaiext.zonal/jt-zonal

Raster ras = classifier.getTile(tileX, tileY);
rectIterator = RectIterFactory.create(ras, computableArea);
rectIterator.startBands();
rectIterator.startLines();

代码示例来源:origin: geosolutions-it/jai-ext

Raster ras = classifier.getTile(tileX, tileY);
rectIterator = RectIterFactory.create(ras, computableArea);
rectIterator.startBands();
rectIterator.startLines();

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

assertTrue(a.finishedBands());
  a.nextPixel();
  a.startBands();
  e.startBands();
} while (!e.nextPixelDone());
assertTrue(a.finishedPixels());

相关文章