|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.jai.PlanarImage
javax.media.jai.OpImage
org.jaitools.media.jai.AttributeOpImage
org.jaitools.media.jai.contour.ContourOpImage
public class ContourOpImage
Generates contours for user-specified levels of values in the source image.
The contours are returned as a 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/
| Field Summary |
|---|
| Fields inherited from class org.jaitools.media.jai.AttributeOpImage |
|---|
roi, srcBounds |
| Fields inherited from class javax.media.jai.OpImage |
|---|
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler |
| Fields inherited from class javax.media.jai.PlanarImage |
|---|
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
protected Object |
getAttribute(String name)
|
protected Class<?> |
getAttributeClass(String name)
Returns the class of the specified attribute. |
protected String[] |
getAttributeNames()
|
| Methods inherited from class org.jaitools.media.jai.AttributeOpImage |
|---|
computesUniqueTiles, computeTile, getProperty, getPropertyClass, getPropertyNames, getTile, getTiles, mapDestRect, mapSourceRect |
| Methods inherited from class javax.media.jai.OpImage |
|---|
addTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize |
| Methods inherited from class javax.media.jai.PlanarImage |
|---|
addPropertyChangeListener, 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, YToTileY |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 interpolation| Method Detail |
|---|
protected 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 AttributeOpImage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||