| java.lang.Object javax.media.jai.OperationDescriptorImpl ca.forklabs.media.jai.operator.UnaryFunctionDescriptor
UnaryFunctionDescriptor | public class UnaryFunctionDescriptor extends OperationDescriptorImpl (Code) | | Class
UnaryFunctionDescriptor is an
OperationDescriptor describing the unaryfunction operation. This operation takes a
source image and creates a new image in which each pixel is the result of
applying an
UnaryFunction to its corresponding pixel of the source
image. Only one source and one parameter are needed.
Resource List
Name | Value |
GlobalName | UnaryFunction |
LocalName | UnaryFunction |
Vendor | ca.forklabs.media.jai.opimage |
Description | Application of an unary function on all the pixels |
DocURL | n/a |
Version | $Version$ |
Arg0Desct | The
UnaryFunction |
Parameter List
Name | Class Type | Default Value |
function | UnaryFunction<Double, Double> | NO_PARAMETER_DEFAULT |
author: Daniel Léonard version: $Revision: 1.6 $ |
Method Summary | |
public static RenderedOp | create(RenderedImage source, UnaryFunction<Double, Double> function, RenderingHints hints) Creates a rendered image.
Parameters: source - the source image. Parameters: function - the unary function. Parameters: hints - the rendering hints, may be null . | public static ParameterBlockJAI | createParameterBlock(String mode, Object source, UnaryFunction<Double, Double> function) Creates and fills a new parameter block.
Parameters: mode - the rendering mode. Parameters: source - the source image. Parameters: function - the unary function. | public static RenderableOp | createRenderable(RenderableImage source, UnaryFunction<Double, Double> function, RenderingHints hints) Creates a renderable image.
Parameters: source - the source image. Parameters: function - the unary function. Parameters: hints - the rendering hints, may be null . | protected static String | getArg0Description() Gets the description of the first parameter. | protected static String | getDescription() Gets the description of this operation. |
FUNCTION_PARAMETER_INDEX | final public static int FUNCTION_PARAMETER_INDEX(Code) | | The index in the parameter block of the unary function parameter.
|
FUNCTION_PARAMETER_NAME | final public static String FUNCTION_PARAMETER_NAME(Code) | | The name of the unary function parameter.
|
NAME | final public static String NAME(Code) | | The name of this operator.
|
UnaryFunctionDescriptor | public UnaryFunctionDescriptor()(Code) | | Constructor.
|
create | public static RenderedOp create(RenderedImage source, UnaryFunction<Double, Double> function, RenderingHints hints)(Code) | | Creates a rendered image.
Parameters: source - the source image. Parameters: function - the unary function. Parameters: hints - the rendering hints, may be null . the new image. |
createParameterBlock | public static ParameterBlockJAI createParameterBlock(String mode, Object source, UnaryFunction<Double, Double> function)(Code) | | Creates and fills a new parameter block.
Parameters: mode - the rendering mode. Parameters: source - the source image. Parameters: function - the unary function. a new parameter block. |
createRenderable | public static RenderableOp createRenderable(RenderableImage source, UnaryFunction<Double, Double> function, RenderingHints hints)(Code) | | Creates a renderable image.
Parameters: source - the source image. Parameters: function - the unary function. Parameters: hints - the rendering hints, may be null . the new image. |
getArg0Description | protected static String getArg0Description()(Code) | | Gets the description of the first parameter.
the description message. |
getDescription | protected static String getDescription()(Code) | | Gets the description of this operation.
the description message. |
Methods inherited from javax.media.jai.OperationDescriptorImpl | public boolean arePropertiesSupported()(Code)(Java Doc) protected static Class getDefaultSourceClass(String modeName)(Code)(Java Doc) public Class getDestClass(String modeName)(Code)(Java Doc) public Class getDestClass()(Code)(Java Doc) public Object getInvalidRegion(String modeName, ParameterBlock oldParamBlock, RenderingHints oldHints, ParameterBlock newParamBlock, RenderingHints newHints, OperationNode node)(Code)(Java Doc) public String getName()(Code)(Java Doc) public int getNumParameters()(Code)(Java Doc) public int getNumSources()(Code)(Java Doc) public Class[] getParamClasses()(Code)(Java Doc) public Object getParamDefaultValue(int index)(Code)(Java Doc) public Object[] getParamDefaults()(Code)(Java Doc) public Number getParamMaxValue(int index)(Code)(Java Doc) public Number getParamMinValue(int index)(Code)(Java Doc) public String[] getParamNames()(Code)(Java Doc) public ParameterListDescriptor getParameterListDescriptor(String modeName)(Code)(Java Doc) public PropertyGenerator[] getPropertyGenerators(String modeName)(Code)(Java Doc) public PropertyGenerator[] getPropertyGenerators()(Code)(Java Doc) public Class getRenderableDestClass()(Code)(Java Doc) public Class[] getRenderableSourceClasses()(Code)(Java Doc) public ResourceBundle getResourceBundle(Locale locale)(Code)(Java Doc) public String[][] getResources(Locale locale)(Code)(Java Doc) public Class[] getSourceClasses(String modeName)(Code)(Java Doc) public Class[] getSourceClasses()(Code)(Java Doc) public String[] getSourceNames()(Code)(Java Doc) public String[] getSupportedModes()(Code)(Java Doc) public boolean isImmediate()(Code)(Java Doc) public boolean isModeSupported(String modeName)(Code)(Java Doc) public boolean isRenderableSupported()(Code)(Java Doc) public boolean isRenderedSupported()(Code)(Java Doc) protected static Class[][] makeDefaultSourceClassList(String[] supportedModes, int numSources)(Code)(Java Doc) public boolean validateArguments(String modeName, ParameterBlock args, StringBuffer msg)(Code)(Java Doc) public boolean validateArguments(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateParameters(String modeName, ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateParameters(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) public boolean validateRenderableArguments(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateRenderableSources(ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateSources(String modeName, ParameterBlock args, StringBuffer msg)(Code)(Java Doc) protected boolean validateSources(ParameterBlock args, StringBuffer msg)(Code)(Java Doc)
|
|
|