All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.pen.PenProcessImage
java.lang.Object
|
+----pinball.player.ProcessImage
|
+----pinball.player.pen.PenProcessImage
- public class PenProcessImage
- extends ProcessImage
- 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.
-
lastFrame
- The last frame.
-
lastFrameSize
- Size of the last frame.
-
lastXSize
- Last XSize of the image.
-
lastYSize
- Last YSize of the image.
-
maskFrame
- Mask frame.
-
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.
-
PenProcessImage()
- For extended classes.
-
PenProcessImage(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.
maskFrame
protected byte maskFrame[]
- Mask 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.
PenProcessImage
protected PenProcessImage(byte frame[],
int x)
- Make the first frame for comparison.
- Parameters:
- frame - the frame used for comparison.
- x - the width of the image.
PenProcessImage
protected PenProcessImage()
- 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.
- 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