icommand.vision
Class ColorEffect
java.lang.Object
icommand.vision.VisionEffect
icommand.vision.ColorEffect
- All Implemented Interfaces:
- javax.media.Codec, javax.media.Controls, javax.media.Effect, javax.media.PlugIn
public class ColorEffect
- extends VisionEffect
Fields inherited from interface javax.media.PlugIn |
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
Method Summary |
java.lang.Object[] |
getControls()
Getter for array on one control for adjusing motion threshold and setting
debug. |
java.lang.String |
getName()
|
int |
process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_PIXEL_THRESHOLD
public static final int MAX_PIXEL_THRESHOLD
- See Also:
- Constant Field Values
MIN_PIXEL_THRESHOLD
public static final int MIN_PIXEL_THRESHOLD
- See Also:
- Constant Field Values
PIXEL_THRESHOLD_INC
public static final int PIXEL_THRESHOLD_INC
- See Also:
- Constant Field Values
INIT_PROPORTION
public static final float INIT_PROPORTION
- See Also:
- Constant Field Values
MAX_PROPORTION
public static final float MAX_PROPORTION
- See Also:
- Constant Field Values
MIN_PROPORTION
public static final float MIN_PROPORTION
- See Also:
- Constant Field Values
PROPORTION_INC
public static final float PROPORTION_INC
- See Also:
- Constant Field Values
averageRed
public int[] averageRed
averageGreen
public int[] averageGreen
averageBlue
public int[] averageBlue
pixelThreshold
public static int pixelThreshold
requiredProportion
public static float requiredProportion
ColorEffect
public ColorEffect()
process
public int process(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer)
getName
public java.lang.String getName()
getControls
public java.lang.Object[] getControls()
- Getter for array on one control for adjusing motion threshold and setting
debug.
- Specified by:
getControls
in interface javax.media.Controls
- Overrides:
getControls
in class VisionEffect
- Returns:
- an array of one ColorDetectionControl