org.geotools.gce.imagemosaic.processing
Class ArtifactsFilterDescriptor
Object
OperationDescriptorImpl
ArtifactsFilterDescriptor
- All Implemented Interfaces:
- Serializable, OperationDescriptor, RegistryElementDescriptor
public class ArtifactsFilterDescriptor
- extends OperationDescriptorImpl
A Artifacts Filter operation descriptor.
Given an input image and a ROI, set the values of pixels outside the ROI
to the background value and transform the pixels along the BORDER of the ROI, if less than a
specified Luminance threshold value, to a mean of all sourrounding pixels within ROI, having
Luminance greater than threshold.
- Author:
- Daniele Romagnoli, GeoSolutions SAS, Simone Giannecchini, GeoSolutions SAS
- See Also:
- Serialized Form
Method Summary |
boolean |
arePropertiesSupported()
Returns true to indicate that properties are supported |
static RenderedImage |
create(RenderedImage sourceImage,
ROI sourceRoi,
double[] backgroundValues,
int threshold,
int filterSize,
RenderingHints hints)
Convenience method which constructs a ParameterBlockJAI and
invokes JAI.create("ArtifactsFilter", params) |
static RenderedImage |
create(RenderedImage sourceImage,
ROI sourceRoi,
double[] backgroundValues,
int threshold,
RenderingHints hints)
|
static RenderedImage |
create(RenderedImage sourceImage,
ROI sourceRoi,
double[] backgroundValues,
RenderingHints hints)
|
boolean |
validateArguments(String modeName,
ParameterBlock pb,
StringBuffer msg)
Checks parameters for the following:
Number of sources is 1
Data image bands are valid
|
Methods inherited from class 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, validateParameters, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArtifactsFilterDescriptor
public ArtifactsFilterDescriptor()
- Constructor.
create
public static RenderedImage create(RenderedImage sourceImage,
ROI sourceRoi,
double[] backgroundValues,
int threshold,
RenderingHints hints)
create
public static RenderedImage create(RenderedImage sourceImage,
ROI sourceRoi,
double[] backgroundValues,
RenderingHints hints)
create
public static RenderedImage create(RenderedImage sourceImage,
ROI sourceRoi,
double[] backgroundValues,
int threshold,
int filterSize,
RenderingHints hints)
- Convenience method which constructs a
ParameterBlockJAI
and
invokes JAI.create("ArtifactsFilter", params)
- Parameters:
sourceImage
- the image to be restoredroi
- a ROI
defining the working areahints
- an optional RenderingHints object
- Returns:
- a RenderedImage with a band for each requested statistic
arePropertiesSupported
public boolean arePropertiesSupported()
- Returns true to indicate that properties are supported
- Specified by:
arePropertiesSupported
in interface RegistryElementDescriptor
- Overrides:
arePropertiesSupported
in class OperationDescriptorImpl
validateArguments
public boolean validateArguments(String modeName,
ParameterBlock pb,
StringBuffer msg)
- Checks parameters for the following:
- Number of sources is 1
- Data image bands are valid
- Specified by:
validateArguments
in interface OperationDescriptor
- Overrides:
validateArguments
in class OperationDescriptorImpl
Copyright © 1996-2014 Geotools. All Rights Reserved.