|
|||||||||
| 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.kernelstats.KernelStatsDescriptor
public class KernelStatsDescriptor
An OperationDescriptor for the "KernelStats" operation.
For each pixel in the input image, a range of summary statistics can be calculated for the values in the pixel's neighbourhood, which is defined using a KernelJAI object.
Two masking options are provided:
| Field Summary |
|---|
| Fields inherited from class javax.media.jai.OperationDescriptorImpl |
|---|
resources, sourceNames, supportedModes |
| Fields inherited from interface javax.media.jai.OperationDescriptor |
|---|
NO_PARAMETER_DEFAULT |
| Constructor Summary | |
|---|---|
KernelStatsDescriptor()
Constructor. |
|
| Method Summary | |
|---|---|
static RenderedImage |
create(RenderedImage source0,
Statistic[] stats,
javax.media.jai.KernelJAI kernel,
int band,
javax.media.jai.ROI roi,
Boolean maskSource,
Boolean maskDest,
Boolean ignoreNaN,
Number nilValue,
RenderingHints hints)
Convenience method which constructs a ParameterBlockJAI and
invokes JAI.create("kernelstats", params) |
boolean |
validateArguments(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, validateParameters, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KernelStatsDescriptor()
| Method Detail |
|---|
public static RenderedImage create(RenderedImage source0,
Statistic[] stats,
javax.media.jai.KernelJAI kernel,
int band,
javax.media.jai.ROI roi,
Boolean maskSource,
Boolean maskDest,
Boolean ignoreNaN,
Number nilValue,
RenderingHints hints)
ParameterBlockJAI and
invokes JAI.create("kernelstats", params)
source0 - the image for which neighbourhood statistics are requiredstats - an array specifying the statistics requiredkernel - a kernel defining the neighbourhoodband - the source image band to process (default 0)roi - optional roi (default is null) used for source and/or destination
maskingmaskSource - if TRUE only the values of source pixels where
roi.contains is true contribute to the calculationmaskDest - if TRUE the statistic is only calculated for pixels where
roi.contains is true; when false the destination pixel is set
to NaNignoreNaN - if TRUE, NaN values in input float or double images
are ignored in calculationsnilValue - value to write to destination when there is no calculated
statistic for a pixel (e.g. due to destination masking or NaNs in neighbourhood)hints - useful for specifying a border extender; may be null
IllegalArgumentException - if any args are null
public boolean validateArguments(String modeName,
ParameterBlock pb,
StringBuffer msg)
validateArguments in interface javax.media.jai.OperationDescriptorvalidateArguments in class javax.media.jai.OperationDescriptorImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||