|
|||||||||
| 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.maskedconvolve.MaskedConvolveDescriptor
public class MaskedConvolveDescriptor
An OperationDescriptor describing the "MaskedConvolve" operation.
This is a variant of JAI's convolve operator which constrains the
convolution to pixels that are included in an ROI.
Two masking options are provided:
If there is no convolution result for a destination image pixel, either because it
was not included in a destination mask or had no kernel values included in a
source mask, it will be set to a flag value. This can be set using the nilValue
parameter (default is 0).
| Field Summary | |
|---|---|
static Number |
DEFAULT_NIL_VALUE
Default value for nilValue parameter (0) |
static String |
MIN_CELLS_ALL
Constant that can be used for the minCells parameter to require all non-zero kernel cells to overlap with unmasked source image cells for convolution to be performed for a terget cell |
static String |
MIN_CELLS_ANY
Constant that can be used for the minCells parameter to specify convolution will be performed for a terget cell if any non-zero kernel cells overlap with unmasked source image cells. |
| Fields inherited from class javax.media.jai.OperationDescriptorImpl |
|---|
resources, sourceNames, supportedModes |
| Fields inherited from interface javax.media.jai.OperationDescriptor |
|---|
NO_PARAMETER_DEFAULT |
| Constructor Summary | |
|---|---|
MaskedConvolveDescriptor()
Constructor. |
|
| Method Summary | |
|---|---|
static javax.media.jai.RenderedOp |
create(RenderedImage source0,
javax.media.jai.KernelJAI kernel,
javax.media.jai.ROI roi,
Boolean maskSource,
Boolean maskDest,
Number nilValue,
int minCells,
RenderingHints hints)
Constructs a ParameterBlockJAI and
invokes JAI.create("maskedconvolve", params) . |
protected boolean |
validateParameters(String modeName,
ParameterBlock pb,
StringBuffer msg)
|
| Methods inherited from class javax.media.jai.OperationDescriptorImpl |
|---|
arePropertiesSupported, 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, 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 String MIN_CELLS_ANY
public static final String MIN_CELLS_ALL
public static final Number DEFAULT_NIL_VALUE
| Constructor Detail |
|---|
public MaskedConvolveDescriptor()
| Method Detail |
|---|
public static javax.media.jai.RenderedOp create(RenderedImage source0,
javax.media.jai.KernelJAI kernel,
javax.media.jai.ROI roi,
Boolean maskSource,
Boolean maskDest,
Number nilValue,
int minCells,
RenderingHints hints)
ParameterBlockJAI and
invokes JAI.create("maskedconvolve", params) .
Note: with this method only integer values can be passed for the minCells
argument. To use the Strings "ANY" or "ALL" or the constants described in the class docs
use the JAI.create method with a parameter block rather than this method.
source0 - the image to be convolvedkernel - convolution kernelroi - the roi controlling convolution (must have the same pixel bounds
as the source image)maskSource - if TRUE only the values of source pixels where
roi.contains is true contribute to the convolutionmaskDest - if TRUE convolution is only performed for pixels where
roi.contains is truenilValue - value to write to the destination image for pixels where
there is no convolution resultminCells - the minimum number of non-zero kernel cells that be positioned over
unmasked source image cells for convolution to be performed for the target cellhints - useful for specifying a border extender; may be null
IllegalArgumentException - if any args are null
protected boolean validateParameters(String modeName,
ParameterBlock pb,
StringBuffer msg)
validateParameters in class javax.media.jai.OperationDescriptorImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||