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.


Constructor Index

 o NativeImageProcessProcessImage(byte[], int)
Make the first frame for comparison.

Method Index

 o findDifference(int, boolean, int, int, int, int, int, byte[], byte[], byte[], byte[], byte[], byte[], int[])
Process the image.
 o merge(int, int)
Merge two objects into one.
 o process(byte[], int, BufferInfo)
Analize the frame for the ball.
 o processed()
Get the last difference image.
 o setup(byte[], int)
Setup the arrays.
 o skip(BufferInfo)
Buffer was skipped.

Constructors

 o 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.

Methods

 o 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.

 o 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
 o 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
 o 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
 o skip
 protected void skip(BufferInfo buffinfo)
Buffer was skipped.

Parameters:
buffinfo - buffer info to skip.
Overrides:
skip in class ProcessImage
 o 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