javax.media.jai.operator
Class NotDescriptor
java.lang.Object
|
+--javax.media.jai.OperationDescriptorImpl
|
+--javax.media.jai.operator.NotDescriptor
- All Implemented Interfaces:
- OperationDescriptor, RegistryElementDescriptor, Serializable
- public class NotDescriptor
- extends OperationDescriptorImpl
An OperationDescriptor
describing the "Not" operation.
The Not operation takes one rendered or renderable image, and
performs bit-wise logical "not" on every pixel from every band of
the source image. No additional parameters are required.
The source image must have an integral data type. By default,
the destination image bound, data type, and number of bands are the
same as the source image.
The following matrix defines the logical "not" operation.
Logical "not"
src | Result |
1 | 0 |
0 | 1 |
The destination pixel values are defined by the pseudocode:
dst[x][y][b] = ~src[x][y][b];
Resource List
Name | Value |
GlobalName | Not |
LocalName | Not |
Vendor | com.sun.media.jai |
Description | Logically "nots" a rendered image. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/NotDescriptor.html |
Version | 1.0 |
No parameters are needed for this operation.
- See Also:
OperationDescriptor
, Serialized Form
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,
validateArguments,
validateParameters,
validateParameters,
validateRenderableArguments,
validateRenderableSources,
validateSources |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NotDescriptor
public NotDescriptor()
- Constructor.
validateSources
protected boolean validateSources(String modeName,
ParameterBlock args,
StringBuffer msg)
- Validates the input source.
In addition to the standard checks performed by the
superclass method, this method checks that the source image
is of integral data type.
- Overrides:
- validateSources in class OperationDescriptorImpl
- Tags copied from class: OperationDescriptorImpl
- Parameters:
modeName
- the operation mode nameargs
- a ParameterBlock
that has the sourcesmsg
- A string that may contain error messages.- Throws:
- IllegalArgumentException - if any of the input parameters are
null
. - See Also:
OperationDescriptorImpl.validateArguments(java.lang.String, java.awt.image.renderable.ParameterBlock, java.lang.StringBuffer)