/** Sets the iterator to the next line of the image. */ public void nextLine() { src.nextLine(); dst.nextLine(); }
} while (!e.nextPixelDone()); assertTrue(a.finishedPixels()); a.nextLine(); a.startPixels(); e.startPixels();
/** * Sets the iterator to the next line of the image. */ @Override public void nextLine() { src.nextLine(); dst.nextLine(); }
/** * Sets the iterator to the next line of the image. */ public void nextLine() { src.nextLine(); dst.nextLine(); }
/** * Sets the iterator to the next line of the image. */ public void nextLine() { src.nextLine(); dst.nextLine(); }
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(); }
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(); }
dx++; readIter.nextLine(); dy++;
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(); } }
inputIter.nextLine(); writerIter.nextLine();
iterator.nextPixel(); iterator.nextLine(); chars("\n");
writerIter.nextPixel(); inputIter.nextLine(); writerIter.nextLine();
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); }
inputIter.nextLine(); writerIter.nextLine();
writerIter.nextPixel(); inputIter.nextLine(); writerIter.nextLine();