public class ContourOpImage extends AttributeOpImage
Collection of
LineStrings.
The interpolation algorithm used is that of Paul Bourke: originally published in Byte magazine (1987) as the CONREC contouring subroutine written in FORTRAN. The implementation here was adapted from Paul Bourke's C code for the algorithm available at: http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/
roi, srcBounds| Constructor and Description |
|---|
ContourOpImage(RenderedImage source,
javax.media.jai.ROI roi,
int band,
Collection<? extends Number> levels,
Double interval,
Collection<Object> noDataValues,
boolean strictNodata,
boolean simplify,
boolean smooth)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getAttribute(String name) |
protected Class<?> |
getAttributeClass(String name)
Returns the class of the specified attribute.
|
protected String[] |
getAttributeNames() |
computesUniqueTiles, computeTile, getProperty, getPropertyClass, getPropertyNames, getTile, getTiles, mapDestRect, mapSourceRectaddTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorizeaddPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileYpublic ContourOpImage(RenderedImage source, javax.media.jai.ROI roi, int band, Collection<? extends Number> levels, Double interval, Collection<Object> noDataValues, boolean strictNodata, boolean simplify, boolean smooth)
levels or interval must
be supplied. If both are supplied interval is ignored.source - the source imageroi - an optional ROI to constrain the areas for which
contours are generatedband - the band of the source image to processlevels - values for which to generate contoursinterval - interval between contour levels (ignored if levels
is supplied)noDataValues - an optional Collection of values and/or Ranges
to treat as NO_DATAsimplify - whether to simplify contour lines by removing
colinear verticesstrictNodata - if true any NO_DATA values in a 2x2 data window will
cause that window to be skipped; if false a single NO_DATA value
is permittedsmooth - whether contour lines should be smoothed using
Bezier interpolationprotected Object getAttribute(String name)
getAttribute in class AttributeOpImageprotected String[] getAttributeNames()
getAttributeNames in class AttributeOpImageprotected Class<?> getAttributeClass(String name)
ContourDescriptor.CONTOUR_PROPERTY_NAME this will be List.getAttributeClass in class AttributeOpImageCopyright © 2009–2020. All rights reserved.