| java.lang.Object javax.media.jai.OperationDescriptorImpl javax.media.jai.operator.BandCombineDescriptor
BandCombineDescriptor | public class BandCombineDescriptor extends OperationDescriptorImpl (Code) | | An OperationDescriptor describing the "BandCombine" operation.
The BandCombing operation computes a set of arbitrary linear
combinations of the bands of a rendered or renderable source image,
using a specified matrix. The matrix must a number of rows equal to
the number of desired destination bands and a number of columns equal to the
number of source bands plus one. In other words, the array may be
constructed using the syntax:
double[][] matrix = new double[destBands][sourceBands + 1];
The number of source bands used to determine the matrix dimensions
is given by source.getSampleModel().getNumBands() regardless
of the type of ColorModel the source has.
The extra column in the matrix contains constant values each of which
is added to the respective band of the destination. The transformation is
therefore defined by the pseudocode:
// s = source pixel
// d = destination pixel
for(int i = 0; i < destBands; i++) {
d[i] = matrix[i][sourceBands];
for(int j = 0; j < sourceBands; j++) {
d[i] += matrix[i][j]*s[j];
}
}
If the result of the computation underflows/overflows the
minimum/maximum value supported by the destination image, then it
will be clamped to the minimum/maximum value respectively.
Resource List
Name | Value |
GlobalName | BandCombine |
LocalName | BandCombine |
Vendor | com.sun.media.jai |
Description | Performs arbitrary interband linear combination
using a specified matrix. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/BandCombineDescriptor.html |
Version | 1.0 |
arg0Desc | The matrix specifying the band combination. |
Parameter List
Name | Class Type |
Default Value |
matrix | double[][] |
NO_PARAMETER_DEFAULT |
See Also: javax.media.jai.OperationDescriptor |
BandCombineDescriptor | public BandCombineDescriptor()(Code) | | Constructor.
|
validateArguments | public boolean validateArguments(String modeName, ParameterBlock args, StringBuffer message)(Code) | | Validates the input source and parameters.
In addition to the standard checks performed by the
superclass method, this method checks that "matrix" has at
least 1 row and (source bands + 1) columns.
The number of source bands is considered to be equal to
source.getSampleModel().getNumBands() .
|
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)
|
|
|