Class FrameGrabber

java.lang.Object
  extended by FrameGrabber

 class FrameGrabber
extends java.lang.Object

The class FrameGrabber contains methods to perform various operations allowing access to the native methods provided by the af2framegrabber library. These methods allow the position of a fibre to be determined, and also allow the overlay of a centroid marker and fibre number.


Field Summary
private static FrameGrabber _instance
           
 
Constructor Summary
private FrameGrabber()
           
 
Method Summary
(package private)  int clearOverlay()
          Clear the frame grabbers overlay
(package private)  java.awt.Point getFibrePosition()
          Get the position of a fibre
(package private)  java.awt.Point getNegativeImageCentroid()
          Get the centroid of a negative image
private  int initialise()
          Initialise the frame grabber
static FrameGrabber instance()
           
(package private)  void overlayCircle(int x, int y)
          Overlay a circle on the video output
(package private)  void overlayNumber(int Number)
          Overlay a number on the video output
(package private)  int reset()
          Reset the frame grabber
(package private)  void setBrightness(int brightness)
          Set the brightness of the frame grabber
(package private)  void setContrast(int contrast)
          Set the contrast of the frame grabber
(package private)  void setGain(int gain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

private static FrameGrabber _instance
Constructor Detail

FrameGrabber

private FrameGrabber()
Method Detail

instance

public static FrameGrabber instance()

initialise

private int initialise()
Initialise the frame grabber


reset

int reset()
Reset the frame grabber


clearOverlay

int clearOverlay()
Clear the frame grabbers overlay


overlayCircle

void overlayCircle(int x,
                   int y)
Overlay a circle on the video output


overlayNumber

void overlayNumber(int Number)
Overlay a number on the video output


getFibrePosition

java.awt.Point getFibrePosition()
Get the position of a fibre


getNegativeImageCentroid

java.awt.Point getNegativeImageCentroid()
Get the centroid of a negative image


setBrightness

void setBrightness(int brightness)
Set the brightness of the frame grabber


setContrast

void setContrast(int contrast)
Set the contrast of the frame grabber


setGain

void setGain(int gain)