at.ac.sbg.cosy.soccerbot.recognition.bestfit
Class BestFitBallDetectService

java.lang.Object
  extended by at.ac.sbg.cosy.soccerbot.recognition.bestfit.BestFitBallDetectService

public class BestFitBallDetectService
extends java.lang.Object

Recognizes the ball out of a list of regions

Author:
Peter Wild

Field Summary
static int HSVBALLCOLOR_CANDLERED
          Test color for red candle
static int HSVBALLCOLOR_RED
          Test color for red balls
static int HSVBALLCOLOR_TENNISBALLGREEN
          Test color for tennis ball (good results with eyetoy camera)
static int HSVBALLCOLOR_TENNISBALLYELLOW
          Another test color for tennis ball
 
Constructor Summary
BestFitBallDetectService()
           
 
Method Summary
static IRegion doService(IRegionCollector collector)
          This is the main entry point for performing the Ball Detect Algorithm regionList vector has to be sorted
static int getHSVBallColor()
          Retrieves Ball Color
static void setHSVBallColor(int hsvBallColor)
          Sets ball color as 32 bit hsv value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HSVBALLCOLOR_RED

public static final int HSVBALLCOLOR_RED
Test color for red balls


HSVBALLCOLOR_CANDLERED

public static final int HSVBALLCOLOR_CANDLERED
Test color for red candle


HSVBALLCOLOR_TENNISBALLGREEN

public static final int HSVBALLCOLOR_TENNISBALLGREEN
Test color for tennis ball (good results with eyetoy camera)


HSVBALLCOLOR_TENNISBALLYELLOW

public static final int HSVBALLCOLOR_TENNISBALLYELLOW
Another test color for tennis ball

Constructor Detail

BestFitBallDetectService

public BestFitBallDetectService()
Method Detail

getHSVBallColor

public static int getHSVBallColor()
Retrieves Ball Color

Returns:
hsv ball color

setHSVBallColor

public static void setHSVBallColor(int hsvBallColor)
Sets ball color as 32 bit hsv value

Parameters:
hsvBallColor - hsv color of ball

doService

public static IRegion doService(IRegionCollector collector)
This is the main entry point for performing the Ball Detect Algorithm regionList vector has to be sorted

Returns:
vector describing a list of regions within the image