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

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

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

RectIter.nextPixel介绍

暂无

代码示例

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

/** Sets the iterator to the next pixel in image (that is, move rightward). */
public void nextPixel() {
  src.nextPixel();
  dst.nextPixel();
}

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

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

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

/**
 * Sets the iterator to the next pixel in image (that is, move rightward).
 */
public void nextPixel() {
  src.nextPixel();
  dst.nextPixel();
}

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

/**
 * Sets the iterator to the next pixel in image (that is, move rightward).
 */
public void nextPixel() {
  src.nextPixel();
  dst.nextPixel();
}

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

/**
 * Sets the iterator to the next pixel in image (that is, move rightward).
 */
@Override
public void nextPixel() {
  src.nextPixel();
  dst.nextPixel();
}

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

sumOfVals += sampleValue;
readIter.nextPixel();

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

private void extractValues() {
  coordinates.clear();
  int column = bounds.x;
  int row = bounds.y + currentRow;
  readIter.startPixels();
  while (!readIter.finishedPixels()) {
    double sampleValue = readIter.getSampleDouble(bandIndex);
    if (retainNoData) {
      Coordinate coord = trans.gridToWorldCoordinate(column, row);
      coord.z = sampleValue;
      coordinates.add(coord);
    } else {
      if (!SSUtils.compareDouble(noData, sampleValue)) {
        Coordinate coord = trans.gridToWorldCoordinate(column, row);
        coord.z = sampleValue;
        coordinates.add(coord);
      }
    }
    column++;
    readIter.nextPixel();
  }
  currentRow++;
  readIter.nextLine();
}

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

private void extractValues() {
  coordinates.clear();
  int column = bounds.x;
  int row = bounds.y + currentRow;
  readIter.startPixels();
  while (!readIter.finishedPixels()) {
    double sampleValue = readIter.getSampleDouble(bandIndex);
    if (retainNoData) {
      Coordinate coord = trans.gridToWorldCoordinate(column, row);
      coord.z = sampleValue;
      coordinates.add(coord);
    } else {
      if (!SSUtils.compareDouble(noData, sampleValue)) {
        Coordinate coord = trans.gridToWorldCoordinate(column, row);
        coord.z = sampleValue;
        coordinates.add(coord);
      }
    }
    column++;
    readIter.nextPixel();
  }
  currentRow++;
  readIter.nextLine();
}

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

aSqDist[dy][dx] = INT_ZERO;
readIter.nextPixel();
dx++;

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

iter.nextPixel();

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

iter.nextPixel();

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

public void visit(GridCoverage2D inputCoverage, Integer bandIndex) {
  reset();
  PlanarImage inputImage = (PlanarImage) inputCoverage.getRenderedImage();
  RectIter readIter = RectIterFactory.create(inputImage, inputImage.getBounds());
  readIter.startLines();
  while (!readIter.finishedLines()) {
    readIter.startPixels();
    while (!readIter.finishedPixels()) {
      double sampleValue = readIter.getSampleDouble(bandIndex);
      visit(Double.valueOf(sampleValue));
      readIter.nextPixel();
    }
    readIter.nextLine();
  }
}

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

if (SSUtils.compareDouble(inputNoData, value)) {
  writerIter.setSample(0, NoData);
  inputIter.nextPixel();
  writerIter.nextPixel();
  continue;
inputIter.nextPixel();
writerIter.nextPixel();

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

inputIter.nextPixel();
writerIter.nextPixel();

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

for (int x = 0; x < WIDTH; x++) {
  assertEquals((double)x + y, iter.getSampleDouble(), TOL);
  iter.nextPixel();

代码示例来源:origin: org.geoserver/gs-wcs2_0

iterator.nextPixel();

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

writerIter.setSample(0, ndviValue);
nirIter.nextPixel();
redIter.nextPixel();
writerIter.nextPixel();

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

writerIter.setSample(0, newValue);
  this.updateStatistics(value);
  inputIter.nextPixel();
  writerIter.nextPixel();
  continue;
inputIter.nextPixel();
writerIter.nextPixel();

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

public GridCoverage2D execute(GridCoverage2D inputGc, double[] fuzzyValues) {
  DiskMemImage outputImage = this.createDiskMemImage(inputGc, RasterPixelType.FLOAT);
  PlanarImage inputImage = (PlanarImage) inputGc.getRenderedImage();
  final double inputNoData = RasterHelper.getNoDataValue(inputGc);
  this.NoData = RasterHelper.getDefaultNoDataValue(PixelType);
  RectIter inputIter = RectIterFactory.create(inputImage, inputImage.getBounds());
  WritableRectIter writerIter = RectIterFactory.createWritable(outputImage,
      outputImage.getBounds());
  inputIter.startLines();
  writerIter.startLines();
  while (!inputIter.finishedLines() && !writerIter.finishedLines()) {
    inputIter.startPixels();
    writerIter.startPixels();
    while (!inputIter.finishedPixels() && !writerIter.finishedPixels()) {
      final double inputVal = inputIter.getSampleDouble(0);
      if (SSUtils.compareDouble(inputNoData, inputVal)) {
        writerIter.setSample(0, NoData);
      } else {
        double fuzzyValue = getFuzzyValue(inputVal, fuzzyValues) * maxRange;
        writerIter.setSample(0, fuzzyValue);
        updateStatistics(inputVal);
      }
      inputIter.nextPixel();
      writerIter.nextPixel();
    }
    inputIter.nextLine();
    writerIter.nextLine();
  }
  return createGridCoverage("Fuzzy", outputImage);
}

代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig

inputIter.nextPixel();
writerIter.nextPixel();

相关文章