|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectPlanarImage
OpImage
UntiledOpImage
Hysteresis
public class Hysteresis
Applies a hysteresis threshold on an image. This operation is defined by an upper threshold, high, and a lower threshold, low. If a pixel value is equals or higher than high, it is keep unchanged. If a pixel value is lower than low, it is replaced by the pad value. If a pixel value is between low and high, then this pixel is called "indeterminate". Its value is keep unchanged only if this pixel is either a neighbor of a pixel having a value equals or higher than high, or a neighbor of an other indeterminate pixel which has been determined close to a pixel having a value equals or higher than high in a previous iteration. This search is performed in an iterative manner until there is no more indeterminate pixels having satisfying neighbor.
| coverage/geotk-coverage (download) | View source code for this class |
| Field Summary | |
|---|---|
protected double |
high
The upper threshold value, inclusive. |
protected double |
low
The lower threshold value, inclusive. |
static String |
OPERATION_NAME
The name of this operation in the JAI registry. |
protected double |
padValue
The value to give to filtered pixel. |
| Fields inherited from class OpImage |
|---|
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler |
| Fields inherited from class PlanarImage |
|---|
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width |
| Constructor Summary | |
|---|---|
Hysteresis(RenderedImage source,
ImageLayout layout,
Map<?,?> configuration,
double low,
double high,
double padValue)
Constructs a new Hysterisis filter for the given image. |
|
| Method Summary | |
|---|---|
protected void |
computeImage(Raster[] sources,
WritableRaster dest,
Rectangle destRect)
Computes a rectangle of outputs. |
Vector<RenderedImage> |
getSources()
Returns the source images. |
| Methods inherited from class UntiledOpImage |
|---|
computeTile, getTileDependencies, mapDestRect, mapSourceRect |
| Methods inherited from class Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String OPERATION_NAME
protected final double low
padValue.
protected final double high
protected final double padValue
| Constructor Detail |
|---|
public Hysteresis(RenderedImage source,
ImageLayout layout,
Map<?,?> configuration,
double low,
double high,
double padValue)
source - The source image.layout - The image layout.configuration - The image properties and rendering hints.low - The lower threshold value, inclusive.high - The upper threshold value, inclusive.padValue - The value to give to filtered pixel.| Method Detail |
|---|
public Vector<RenderedImage> getSources()
getSources in interface RenderedImagegetSources in class PlanarImage
protected void computeImage(Raster[] sources,
WritableRaster dest,
Rectangle destRect)
computeImage in class UntiledOpImagesources - The source images. Should be an array of length 1.dest - The raster to be filled in.destRect - The region within the raster to be filled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||