|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.sbg.cosy.soccerbot.acquisition.ImageAcquisition
public class ImageAcquisition
Field Summary | |
---|---|
static int |
BIT_PER_PIXEL
The predefined colordepth of 24 bits. |
static java.lang.String |
DEVICE
The device name URL: vfw://[Devicename]devicenumber Example: vfw://0 specifies the fist capture device, a usb webcam, must be register at the jmf. |
static java.awt.Dimension |
RESOLUTION
The predefined resolution of 352x288. |
Method Summary | |
---|---|
java.awt.image.BufferedImage |
capture()
Captures a Image from the capture device DEVICE and returns it as a java.awt.Image |
void |
close()
Terminates this service, after calling this methode the service is no longer available. |
static IImageAcquisition |
getInstance()
|
java.awt.Dimension |
getResolution()
Once the capture device has settled this function returns the resolution of the captured image. |
boolean |
init()
Tries to init this service |
static void |
newInstance()
Creates a new singelton instance of this service |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEVICE
public static final int BIT_PER_PIXEL
public static final java.awt.Dimension RESOLUTION
Method Detail |
---|
public boolean init()
IImageAcquisition
init
in interface IImageAcquisition
init()
public static void newInstance()
public static IImageAcquisition getInstance()
public java.awt.image.BufferedImage capture()
IImageAcquisition
capture
in interface IImageAcquisition
capture()
public void close()
IImageAcquisition
close
in interface IImageAcquisition
close()
public java.awt.Dimension getResolution()
IImageAcquisition
getResolution
in interface IImageAcquisition
getResolution()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |