roomba.roombanetwork.services.image
Interface Camera

All Known Implementing Classes:
ISight, JMFCam

public interface Camera

Interface for a Camera

Author:
Drew Housten

Method Summary
 void disconnect()
          Disconnects the camera
 int getHeight()
          Gets the height of the image that is provided
 java.awt.Image getLatestImage()
          Gets the latest image that was pulled from the camera
 int getWidth()
          Gets the width of the image that is provided
 boolean isInitialized()
          Indicates if the camera has been started and initialized properly
 void reconnect()
          Reconnects the camera
 

Method Detail

getLatestImage

java.awt.Image getLatestImage()
Gets the latest image that was pulled from the camera

Returns:
The latest image

getWidth

int getWidth()
Gets the width of the image that is provided

Returns:
The width of the image

getHeight

int getHeight()
Gets the height of the image that is provided

Returns:
The height of the image

disconnect

void disconnect()
Disconnects the camera


reconnect

void reconnect()
Reconnects the camera


isInitialized

boolean isInitialized()
Indicates if the camera has been started and initialized properly

Returns:
true iff the camera has been initialized