|
|||||||||
| 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
javax.media.jai.SourcelessOpImage
org.jaitools.media.jai.vectorbinarize.VectorBinarizeOpImage
public class VectorBinarizeOpImage
Creates a binary image based on tests of pixel inclusion in a polygonal Geometry. See
VectorBinarizeDescriptor for details.
| Field Summary | |
|---|---|
static boolean |
DEFAULT_ANTIALIASING
Default setting for anti-aliasing (false). |
| 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 | |
|---|---|
VectorBinarizeOpImage(SampleModel sm,
Map configuration,
int minX,
int minY,
int width,
int height,
com.vividsolutions.jts.geom.prep.PreparedGeometry geom,
PixelCoordType coordType)
Constructor. |
|
VectorBinarizeOpImage(SampleModel sm,
Map configuration,
int minX,
int minY,
int width,
int height,
com.vividsolutions.jts.geom.prep.PreparedGeometry geom,
PixelCoordType coordType,
boolean antiAliasing)
Constructor. |
|
| Method Summary | |
|---|---|
Raster |
computeTile(int tileX,
int tileY)
Returns the specified tile. |
protected Raster |
getTileRaster(int minX,
int minY)
Gets the data for the requested tile. |
| Methods inherited from class javax.media.jai.SourcelessOpImage |
|---|
computesUniqueTiles, mapDestRect, mapSourceRect |
| Methods inherited from class javax.media.jai.OpImage |
|---|
addTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, 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, getProperty, getPropertyClass, getPropertyNames, 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 |
| Field Detail |
|---|
public static final boolean DEFAULT_ANTIALIASING
| Constructor Detail |
|---|
public VectorBinarizeOpImage(SampleModel sm,
Map configuration,
int minX,
int minY,
int width,
int height,
com.vividsolutions.jts.geom.prep.PreparedGeometry geom,
PixelCoordType coordType)
sm - the SampleModel used to create tilesconfiguration - rendering hintsminX - origin X ordinateminY - origin Y ordinatewidth - image widthheight - image heightgeom - reference polygonal geometrycoordType - type of coordinates to use when testing pixel inclusion
(corner or center)
public VectorBinarizeOpImage(SampleModel sm,
Map configuration,
int minX,
int minY,
int width,
int height,
com.vividsolutions.jts.geom.prep.PreparedGeometry geom,
PixelCoordType coordType,
boolean antiAliasing)
sm - the SampleModel used to create tilesconfiguration - rendering hintsminX - origin X ordinateminY - origin Y ordinatewidth - image widthheight - image heightgeom - reference polygonal geometrycoordType - type of coordinates to use when testing pixel inclusion
(corner or center)antiAliasing - whether to use anti-aliasing when rendering the reference geometry| Method Detail |
|---|
public Raster computeTile(int tileX,
int tileY)
computeTile in class javax.media.jai.SourcelessOpImagetileX - tile X indextileY - tile Y index
protected Raster getTileRaster(int minX,
int minY)
PreparedGeometry a cached
constant Raster with 1 or 0 values is returned. Otherwise
tile pixels are checked for inclusion and set individually.
minX - origin X ordinateminY - origin Y ordinate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||