uk.ac.ed.inf.sdp2012.group7.vision
Class FeedProcessor

java.lang.Object
  extended by uk.ac.ed.inf.sdp2012.group7.vision.FeedProcessor

public class FeedProcessor
extends java.lang.Object

Do our work on the frames, call the thresholding, do the marking of frames etc

Author:
?

Constructor Summary
FeedProcessor(InitialLocation il, int height, int width, VisionFeed visionFeed, ThresholdsState ts)
          Constructor
 
Method Summary
 void calculateFPS(long before, java.awt.Graphics imageGraphics, java.awt.Graphics frameGraphics, java.awt.image.BufferedImage image, int width, int height)
          Calculates and draws FPS and the HUD
 void drawOverlay(java.awt.image.BufferedImage im)
          Draw pitch onto image
 void markObjects(java.awt.Graphics imageGraphics)
          Draw positions of objects
 void processAndUpdateImage(java.awt.image.BufferedImage image, long before, javax.swing.JLabel label)
          Where everything is called from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedProcessor

public FeedProcessor(InitialLocation il,
                     int height,
                     int width,
                     VisionFeed visionFeed,
                     ThresholdsState ts)
Constructor

Parameters:
il -
height -
width -
visionFeed -
ts -
Method Detail

processAndUpdateImage

public void processAndUpdateImage(java.awt.image.BufferedImage image,
                                  long before,
                                  javax.swing.JLabel label)
Where everything is called from

Parameters:
image - Current frame
before - ?
label - ?

drawOverlay

public void drawOverlay(java.awt.image.BufferedImage im)
Draw pitch onto image

Parameters:
im - Current frame

markObjects

public void markObjects(java.awt.Graphics imageGraphics)
Draw positions of objects

Parameters:
imageGraphics - ?

calculateFPS

public void calculateFPS(long before,
                         java.awt.Graphics imageGraphics,
                         java.awt.Graphics frameGraphics,
                         java.awt.image.BufferedImage image,
                         int width,
                         int height)
Calculates and draws FPS and the HUD

Parameters:
before - ?
imageGraphics - ?
frameGraphics - ?
image - The frame to draw on
width - Of image
height - Of image