All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.nativeimageprocess.NativeImageProcessProcessImage
java.lang.Object
|
+----pinball.player.ProcessImage
|
+----pinball.player.nativeimageprocess.NativeImageProcessProcessImage
- public class NativeImageProcessProcessImage
- extends ProcessImage
- implements Serializable
Find's the location of the blip in the image.
-
NativeImageProcessProcessImage(byte[], int)
-
Make the first frame for comparison.
-
findDifference(int, boolean, int, int, int, int, int, byte[], byte[], byte[], byte[], byte[], byte[], int[])
- Process the image.
-
merge(int, int)
- Merge two objects into one.
-
process(byte[], int, BufferInfo)
- Analize the frame for the ball.
-
processed()
- Get the last difference image.
-
setup(byte[], int)
-
Setup the arrays.
-
skip(BufferInfo)
- Buffer was skipped.
NativeImageProcessProcessImage
protected NativeImageProcessProcessImage(byte frame[],
int x)
- Make the first frame for comparison.
- Parameters:
- frame - the frame used for comparison.
- x - the width of the image.
findDifference
protected native void findDifference(int threshold,
boolean verbose,
int black,
int white,
int maxX,
int maxY,
int pixelRate,
byte frame[],
byte lastFrame[],
byte lastDifference[],
byte currentDifferenceFrame[],
byte blipLocationFrame[],
byte verboseFrame[],
int changes[])
- Process the image.
setup
protected void setup(byte frame[],
int x)
- Setup the arrays.
- Parameters:
- frame - the frame used for comparison.
- x - the width of the image.
- Overrides:
- setup in class ProcessImage
process
protected void process(byte frame[],
int x,
BufferInfo buffinfo)
- Analize the frame for the ball.
- Parameters:
- frame - frame to analyze
- width - the width of the image
- buffinfo - the storage for the blips it finds.
- Overrides:
- process in class ProcessImage
merge
protected void merge(int a,
int b)
- Merge two objects into one.
- Parameters:
- a - object a.
- b - object b.
- Overrides:
- merge in class ProcessImage
skip
protected void skip(BufferInfo buffinfo)
- Buffer was skipped.
- Parameters:
- buffinfo - buffer info to skip.
- Overrides:
- skip in class ProcessImage
processed
protected byte[] processed()
- Get the last difference image.
- Returns:
- the last difference frame.
- Overrides:
- processed in class ProcessImage
All Packages Class Hierarchy This Package Previous Next Index