|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.jai.OperationDescriptorImpl
jaitools.media.jai.regionalize.RegionalizeDescriptor
public class RegionalizeDescriptor
Describes the "Regionalize" operation.
This operation takes a single source image and identifies regions of connected pixels with uniform value, where value comparisons take into account a user-specified tolerance.
Note: At present, this operator only deals with a single specified band.
A pixel is connected to another pixel if a path can be defined between them that only passes through pixels with the same value, taking unit steps horizontally, vertically and, optionally, diagonally.
Each region that is identified in the source image is allocated
a unique integer ID. The product of the operation is an image
with data of TYPE_INT, where each pixel has its region ID as its
value. A RegionData object is also returned as
a property of the output image. It can be retrieved by calling
the getProperty method on this operator with "regiondata"
as the property name (this name can also be referred to with
REGION_DATA_PROPERTY).
Parameters
| Name | Type | Default value |
| band | int | 0 |
| tolerance | double | 0d |
| diagonal | boolean | false |
| Field Summary | |
|---|---|
static java.lang.String |
REGION_DATA_PROPERTY
The propoerty name to retrieve the RegionData object which holds summary data for regions identified in the source image and depicted in the destination image |
| Fields inherited from class javax.media.jai.OperationDescriptorImpl |
|---|
resources, sourceNames, supportedModes |
| Fields inherited from interface javax.media.jai.OperationDescriptor |
|---|
NO_PARAMETER_DEFAULT |
| Constructor Summary | |
|---|---|
RegionalizeDescriptor()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
arePropertiesSupported()
|
static javax.media.jai.RenderedOp |
create(java.awt.image.RenderedImage source0,
int band,
double tolerance,
boolean diagonal,
java.awt.RenderingHints hints)
Convenience method which constructs a ParameterBlockJAI and
invokes JAI.create("regionalize", params) . |
| Methods inherited from class javax.media.jai.OperationDescriptorImpl |
|---|
getDefaultSourceClass, getDestClass, getDestClass, getInvalidRegion, getName, getNumParameters, getNumSources, getParamClasses, getParamDefaults, getParamDefaultValue, getParameterListDescriptor, getParamMaxValue, getParamMinValue, getParamNames, getPropertyGenerators, getPropertyGenerators, getRenderableDestClass, getRenderableSourceClasses, getResourceBundle, getResources, getSourceClasses, getSourceClasses, getSourceNames, getSupportedModes, isImmediate, isModeSupported, isRenderableSupported, isRenderedSupported, makeDefaultSourceClassList, validateArguments, validateArguments, validateParameters, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REGION_DATA_PROPERTY
| Constructor Detail |
|---|
public RegionalizeDescriptor()
| Method Detail |
|---|
public boolean arePropertiesSupported()
arePropertiesSupported in interface javax.media.jai.RegistryElementDescriptorarePropertiesSupported in class javax.media.jai.OperationDescriptorImpl
public static javax.media.jai.RenderedOp create(java.awt.image.RenderedImage source0,
int band,
double tolerance,
boolean diagonal,
java.awt.RenderingHints hints)
ParameterBlockJAI and
invokes JAI.create("regionalize", params) .
If an ImageLayout object is included in the RenderingHints passed to
this method, any specification of the SampleModel for the destination
image will be overridden such that the destination will always be
TYPE_INT.
source0 - the image to be regionalizedband - the band to processtolerance - tolerance for pixel value comparisonsdiagonal - true to include diagonal connections; false for only
orthogonal connectionshints - rendering hints (may be null)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||