it.geosolutions.jaiext.contrastenhancement
Class SquareRootStretchDescriptor

java.lang.Object
  extended by javax.media.jai.OperationDescriptorImpl
      extended by it.geosolutions.jaiext.contrastenhancement.SquareRootStretchDescriptor
All Implemented Interfaces:
Serializable, javax.media.jai.OperationDescriptor, javax.media.jai.RegistryElementDescriptor

public class SquareRootStretchDescriptor
extends javax.media.jai.OperationDescriptorImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.media.jai.OperationDescriptorImpl
sourceNames, supportedModes
 
Fields inherited from interface javax.media.jai.OperationDescriptor
NO_PARAMETER_DEFAULT
 
Constructor Summary
SquareRootStretchDescriptor()
          Constructor.
 
Method Summary
static javax.media.jai.RenderedOp create(RenderedImage source0, int[] inputMin, int[] inputMax, int[] outputMin, int[] outputMax, RenderingHints hints)
          Compute the SquareRoot stretch Creates a ParameterBlockJAI from all supplied arguments except hints and invokes JAI.create(String,ParameterBlock,RenderingHints).
static javax.media.jai.RenderableOp createRenderable(RenderableImage source0, int[] inputMin, int[] inputMax, int[] outputMin, int[] outputMax, RenderingHints hints)
          Compute the SquareRoot stretch Creates a ParameterBlockJAI from all supplied arguments except hints and invokes JAI.createRenderable(String,ParameterBlock,RenderingHints).
 boolean isRenderableSupported()
          Returns true since renderable operation is supported.
protected  boolean validateParameters(ParameterBlock args, StringBuffer message)
          Validates the input parameter.
 
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, 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
 

Constructor Detail

SquareRootStretchDescriptor

public SquareRootStretchDescriptor()
Constructor.

Method Detail

create

public static javax.media.jai.RenderedOp create(RenderedImage source0,
                                                int[] inputMin,
                                                int[] inputMax,
                                                int[] outputMin,
                                                int[] outputMax,
                                                RenderingHints hints)
Compute the SquareRoot stretch

Creates a ParameterBlockJAI from all supplied arguments except hints and invokes JAI.create(String,ParameterBlock,RenderingHints).

Parameters:
source0 - RenderedImage source 0.
hints - The RenderingHints to use. May be null.
Returns:
The RenderedOp destination.
Throws:
IllegalArgumentException - if source0 is null.
See Also:
JAI, ParameterBlockJAI, RenderedOp

createRenderable

public static javax.media.jai.RenderableOp createRenderable(RenderableImage source0,
                                                            int[] inputMin,
                                                            int[] inputMax,
                                                            int[] outputMin,
                                                            int[] outputMax,
                                                            RenderingHints hints)
Compute the SquareRoot stretch

Creates a ParameterBlockJAI from all supplied arguments except hints and invokes JAI.createRenderable(String,ParameterBlock,RenderingHints).

Parameters:
source0 - RenderableImage source 0.
hints - The RenderingHints to use. May be null.
Returns:
The RenderableOp destination.
Throws:
IllegalArgumentException - if source0 is null.
See Also:
JAI, ParameterBlockJAI, RenderableOp

isRenderableSupported

public boolean isRenderableSupported()
Returns true since renderable operation is supported.

Specified by:
isRenderableSupported in interface javax.media.jai.OperationDescriptor
Overrides:
isRenderableSupported in class javax.media.jai.OperationDescriptorImpl

validateParameters

protected boolean validateParameters(ParameterBlock args,
                                     StringBuffer message)
Validates the input parameter.

In addition to the standard checks performed by the superclass method, this method checks that the length of the provided parameters array is at least 1.

Overrides:
validateParameters in class javax.media.jai.OperationDescriptorImpl


Copyright © 2006–2015 GeoSolutions. All rights reserved.