| java.lang.Object javax.media.jai.OperationDescriptorImpl javax.media.jai.operator.MeanDescriptor
MeanDescriptor | public class MeanDescriptor extends OperationDescriptorImpl (Code) | | An OperationDescriptor describing the "Mean" operation.
The Mean operation scans a specific region of a rendered image
and computes the mean pixel value for each band within that region
of the image. The image data pass through this operation unchanged.
The region-wise mean pixel value for each band may be
retrieved by calling the getProperty method on this
operation with "mean" as the property name. The return value has
type double[#bands] .
The region of interest (ROI) does not have to be a rectangle.
It may be null , in which case the entire image is
scanned to find the image-wise mean pixel value for each band.
The set of pixels scanned may be further reduced by
specifying the "xPeriod" and "yPeriod" parameters that represent
the sampling rate along each axis. These variables may not be
less than 1. However, they may be null , in which
case the sampling rate is set to 1; that is, every pixel in the
ROI is processed.
Resource List
Name | Value |
GlobalName | Mean |
LocalName | Mean |
Vendor | com.sun.media.jai |
Description | Calculates the region-wise mean pixel value
for each band of an image. |
DocURL | http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/MeanDescriptor.html |
Version | 1.0 |
arg0Desc | The region of the image to scan. |
arg1Desc | The horizontal sampling rate,
may not be less than 1. |
arg2Desc | The vertical sampling rate,
may not be less than 1. |
Parameter List
Name | Class Type |
Default Value |
roi | javax.media.jai.ROI |
null |
xPeriod | java.lang.Integer |
1 |
yPeriod | java.lang.Integer |
1 |
See Also: javax.media.jai.ROI See Also: javax.media.jai.OperationDescriptor |
Method Summary | |
public static RenderedOp | create(RenderedImage source0, ROI roi, Integer xPeriod, Integer yPeriod, RenderingHints hints) Calculates the image-wise mean pixel value for each band of an image.
Creates a ParameterBlockJAI from all
supplied arguments except hints and invokes
JAI.create(StringParameterBlockRenderingHints) .
See Also: JAI See Also: ParameterBlockJAI See Also: RenderedOp Parameters: source0 - RenderedImage source 0. Parameters: roi - The region of the image to scan.May be null . Parameters: xPeriod - The horizontal sampling rate, may not be less than 1.May be null . Parameters: yPeriod - The vertical sampling rate, may not be less than 1.May be null . Parameters: hints - The RenderingHints to use.May be null . | public Number | getParamMinValue(int index) Returns the minimum legal value of a specified numeric parameter
for this operation. |
MeanDescriptor | public MeanDescriptor()(Code) | | Constructor.
|
create | public static RenderedOp create(RenderedImage source0, ROI roi, Integer xPeriod, Integer yPeriod, RenderingHints hints)(Code) | | Calculates the image-wise mean pixel value for each band of an image.
Creates a ParameterBlockJAI from all
supplied arguments except hints and invokes
JAI.create(StringParameterBlockRenderingHints) .
See Also: JAI See Also: ParameterBlockJAI See Also: RenderedOp Parameters: source0 - RenderedImage source 0. Parameters: roi - The region of the image to scan.May be null . Parameters: xPeriod - The horizontal sampling rate, may not be less than 1.May be null . Parameters: yPeriod - The vertical sampling rate, may not be less than 1.May be null . Parameters: hints - The RenderingHints to use.May be null . The RenderedOp destination. throws: IllegalArgumentException - if source0 is null . |
getParamMinValue | public Number getParamMinValue(int index)(Code) | | Returns the minimum legal value of a specified numeric parameter
for this operation.
|
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)
|
|
|