icommand.vision
Class ColorEffect

java.lang.Object
  extended by icommand.vision.VisionEffect
      extended by icommand.vision.ColorEffect
All Implemented Interfaces:
javax.media.Codec, javax.media.Controls, javax.media.Effect, javax.media.PlugIn

public class ColorEffect
extends VisionEffect


Field Summary
 int[] averageBlue
           
 int[] averageGreen
           
 int[] averageRed
           
static float INIT_PROPORTION
           
static int MAX_PIXEL_THRESHOLD
           
static float MAX_PROPORTION
           
static int MIN_PIXEL_THRESHOLD
           
static float MIN_PROPORTION
           
static int PIXEL_THRESHOLD_INC
           
static int pixelThreshold
           
static float PROPORTION_INC
           
static float requiredProportion
           
 
Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Constructor Summary
ColorEffect()
           
 
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 icommand.vision.VisionEffect
close, getControl, getSupportedInputFormats, getSupportedOutputFormats, open, reset, setInputFormat, setOutputFormat
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ColorEffect

public ColorEffect()
Method Detail

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