edu.berkeley.guir.papier_mache.input
Class FilesImageInput

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.input.ImageInputDevice
      extended by edu.berkeley.guir.papier_mache.input.FilesImageInput
All Implemented Interfaces:
InputDevice

public class FilesImageInput
extends ImageInputDevice

A "Wizard of Oz" proxy for a camera that uses jpeg files to drive the vision system.

Author:
Scott Klemmer ( srk(AT)cs.berkeley.edu )

Constructor Summary
FilesImageInput(java.lang.String prefix)
           
 
Method Summary
 java.awt.Dimension getImageSize()
           
 java.awt.Component getSourcePanel()
           
static java.io.File popupFileChooser()
          Pops up a file chooser allowing the user to select a directory.
 java.lang.String toString()
           
 
Methods inherited from class edu.berkeley.guir.papier_mache.input.ImageInputDevice
addInputDataListener, fireInputDataEvent, removeInputDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilesImageInput

public FilesImageInput(java.lang.String prefix)
Parameters:
prefix - the full path and filename prefix of test files, e.g., "C:\test\test-"
Method Detail

getImageSize

public java.awt.Dimension getImageSize()
Specified by:
getImageSize in class ImageInputDevice

getSourcePanel

public java.awt.Component getSourcePanel()
Specified by:
getSourcePanel in class ImageInputDevice

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

popupFileChooser

public static java.io.File popupFileChooser()
Pops up a file chooser allowing the user to select a directory.

Returns:
a directory