All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.ProcessImage
java.lang.Object
|
+----pinball.player.ProcessImage
- public class ProcessImage
- extends Object
- implements Serializable
Find's the location of the blip in the image.
-
black
- A black pixel.
-
blipLocationFrame
- Location of blips in the image.
-
currentDifferenceFrame
- The current difference frame.
-
foundObjects
- Found objects.
-
i
- Used in for loops.
-
lastDifferenceFrame
- Last difference frame.
-
lastFrame
- The last frame.
-
lastFrameSize
- Size of the last frame.
-
lastXSize
- Last XSize of the image.
-
lastYSize
- Last YSize of the image.
-
maxObject
- Biggest object.
-
objectsFrame
- Frame of objects.
-
pixelRate
- Rate of pixels to skip while processing.
-
start
- The first pixel to start at.
-
thing
- The object working on.
-
threshold
- The threshold in comparing the images for changes.
-
verboseFrame
- Verbose Image.
-
white
- A white pixel.
-
xsize
- XSize of the image.
-
ysize
- YSize of the image.
-
ProcessImage()
- For extended classes.
-
ProcessImage(byte[], int)
-
Make the first frame for comparison.
-
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.
threshold
protected int threshold
- The threshold in comparing the images for changes.
white
protected byte white
- A white pixel.
black
protected byte black
- A black pixel.
lastFrame
protected byte lastFrame[]
- The last frame.
currentDifferenceFrame
protected byte currentDifferenceFrame[]
- The current difference frame.
lastDifferenceFrame
protected byte lastDifferenceFrame[]
- Last difference frame.
blipLocationFrame
protected byte blipLocationFrame[]
- Location of blips in the image.
verboseFrame
protected byte verboseFrame[]
- Verbose Image.
objectsFrame
protected int objectsFrame[][]
- Frame of objects.
maxObject
protected int maxObject
- Biggest object.
foundObjects
protected Vector foundObjects
- Found objects.
thing
protected Blip thing
- The object working on.
i
protected int i
- Used in for loops.
xsize
protected int xsize
- XSize of the image.
ysize
protected int ysize
- YSize of the image.
lastXSize
protected int lastXSize
- Last XSize of the image.
lastYSize
protected int lastYSize
- Last YSize of the image.
pixelRate
protected int pixelRate
- Rate of pixels to skip while processing.
start
protected int start
- The first pixel to start at.
lastFrameSize
protected int lastFrameSize
- Size of the last frame. Used to see if the frame has changed size.
If so, resize the frames's arrays.
ProcessImage
protected ProcessImage(byte frame[],
int x)
- Make the first frame for comparison.
- Parameters:
- frame - the frame used for comparison.
- x - the width of the image.
ProcessImage
protected ProcessImage()
- For extended classes.
setup
protected void setup(byte frame[],
int x)
- Setup the arrays.
- Parameters:
- frame - the frame used for comparison.
- x - the width of the image.
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.
merge
protected void merge(int a,
int b)
- Merge two objects into one.
- Parameters:
- a - object a.
- b - object b.
skip
protected void skip(BufferInfo buffinfo)
- Buffer was skipped.
- Parameters:
- buffinfo - buffer info to skip.
processed
protected byte[] processed()
- Get the last difference image.
- Returns:
- the last difference frame.
All Packages Class Hierarchy This Package Previous Next Index