本文整理了Java中javax.media.jai.iterator.RectIter.nextLine
方法的一些代码示例,展示了RectIter.nextLine
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RectIter.nextLine
方法的具体详情如下:
包路径:javax.media.jai.iterator.RectIter
类名称:RectIter
方法名:nextLine
暂无
代码示例来源:origin: geotools/geotools
/** Sets the iterator to the next line of the image. */
public void nextLine() {
src.nextLine();
dst.nextLine();
}
代码示例来源:origin: Geomatys/geotoolkit
} while (!e.nextPixelDone());
assertTrue(a.finishedPixels());
a.nextLine();
a.startPixels();
e.startPixels();
代码示例来源:origin: Geomatys/geotoolkit
/**
* Sets the iterator to the next line of the image.
*/
@Override
public void nextLine() {
src.nextLine();
dst.nextLine();
}
代码示例来源:origin: org.geotools/gt-coverage
/**
* Sets the iterator to the next line of the image.
*/
public void nextLine() {
src.nextLine();
dst.nextLine();
}
代码示例来源:origin: org.geotools/gt2-coverage
/**
* Sets the iterator to the next line of the image.
*/
public void nextLine() {
src.nextLine();
dst.nextLine();
}
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
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
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
dx++;
readIter.nextLine();
dy++;
代码示例来源:origin: org.jaitools/jt-contour
iter.nextLine();
代码示例来源:origin: com.googlecode.jaitools/jt-contour
iter.nextLine();
代码示例来源: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
inputIter.nextLine();
writerIter.nextLine();
代码示例来源:origin: geosolutions-it/jai-ext
iter.nextLine();
代码示例来源:origin: org.geoserver/gs-wcs2_0
iterator.nextPixel();
iterator.nextLine();
chars("\n");
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
writerIter.nextPixel();
nirIter.nextLine();
redIter.nextLine();
writerIter.nextLine();
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
writerIter.nextPixel();
inputIter.nextLine();
writerIter.nextLine();
代码示例来源: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.nextLine();
writerIter.nextLine();
代码示例来源:origin: mapplus/spatial_statistics_for_geotools_udig
writerIter.nextPixel();
inputIter.nextLine();
writerIter.nextLine();
内容来源于网络,如有侵权,请联系作者删除!