jAER project on SourceForge

ch.unizh.ini.jaer.chip.stereopsis
Class Tmpdiff128StereoPair

java.lang.Object
  extended by java.util.Observable
      extended by net.sf.jaer.chip.Chip
          extended by net.sf.jaer.chip.Chip2D
              extended by net.sf.jaer.chip.AEChip
                  extended by ch.unizh.ini.jaer.chip.retina.AERetina
                      extended by ch.unizh.ini.jaer.chip.retina.Tmpdiff128
                          extended by ch.unizh.ini.jaer.chip.stereopsis.Tmpdiff128StereoPair
All Implemented Interfaces:
java.io.Serializable, StereoChipInterface

public class Tmpdiff128StereoPair
extends Tmpdiff128
implements StereoChipInterface

A stereo pair of Tmpdiff128 retinas each with its own separate but time-sychronized hardware interface. Differs from the usual AEChip object in that it also overrides #getHardwareInterface and #setHardwareInterface to supply StereoHardwareInterface which is a pair of Tmpdiff128 hardware interfaces.

Author:
tobi
See Also:
Serialized Form

Nested Class Summary
 class Tmpdiff128StereoPair.Biasgen
          A paired biasgen for this stereo combination of Tmpdiff128.
 class Tmpdiff128StereoPair.Extractor
          the event extractor for the stereo chip pair.
 
Field Summary
 
Fields inherited from class net.sf.jaer.chip.AEChip
aeInputStream, aeOutputStream, aeViewer, defaultEventFilters, eventExtractor, filterChain, renderer
 
Fields inherited from class net.sf.jaer.chip.Chip2D
canvas, filterFrame, numCellTypes, sizeX, sizeY
 
Fields inherited from class net.sf.jaer.chip.Chip
biasgen, hardwareInterface, log, name
 
Constructor Summary
Tmpdiff128StereoPair()
          Creates a new instance of Tmpdiff128StereoPair
 
Method Summary
 HardwareInterface getHardwareInterface()
          Builds and returns a StereoHardwareInterface for this stereo pair of devices.
 AEChip getLeft()
           
 int getNumCellTypes()
           
 AEChip getRight()
           
 void setAeViewer(AEViewer aeViewer)
          Sets the AEViewer that will display this chip.
 void setHardwareInterface(HardwareInterface hw)
          overrides the Chip setHardware interface to construct a biasgen if one doesn't exist already.
 void setLeft(AEChip left)
           
 void setRight(AEChip right)
           
 void swapEyes()
          swaps the left and right hardware channels.
 
Methods inherited from class net.sf.jaer.chip.AEChip
addDefaultEventFilter, getAeInputStream, getAeOutputStream, getAeViewer, getDefaultEventFilterClasses, getDefaultEventFilterClassNames, getDescription, getEventClass, getEventExtractor, getFilterChain, getFilterFrame, getRawAddressNumBits, getRenderer, isSubSamplingEnabled, setAeInputStream, setAeOutputStream, setEventClass, setEventExtractor, setFilterChain, setFilterFrame, setNumCellTypes, setRawAddressNumBits, setRenderer, setSubSamplingEnabled, toString
 
Methods inherited from class net.sf.jaer.chip.Chip2D
getCanvas, getMaxSize, getMinSize, getNumCells, getNumPixels, getPixelHeightUm, getPixelWidthUm, getSizeX, getSizeY, setCanvas, setName, setPixelHeightUm, setPixelWidthUm, setRenderer, setSizeX, setSizeY
 
Methods inherited from class net.sf.jaer.chip.Chip
getBiasgen, getLastData, getName, getPreferredHardwareInterface, getPrefs, getRemoteControl, setBiasgen, setLastData, setPreferredHardwareInterface, setPrefs, setRemoteControl
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tmpdiff128StereoPair

public Tmpdiff128StereoPair()
Creates a new instance of Tmpdiff128StereoPair

Method Detail

setAeViewer

public void setAeViewer(AEViewer aeViewer)
Description copied from class: AEChip
Sets the AEViewer that will display this chip. Notifies Observers of this chip with the aeViewer instance.

Overrides:
setAeViewer in class Tmpdiff128
Parameters:
aeViewer - the viewer

getLeft

public AEChip getLeft()
Specified by:
getLeft in interface StereoChipInterface

getRight

public AEChip getRight()
Specified by:
getRight in interface StereoChipInterface

setLeft

public void setLeft(AEChip left)
Specified by:
setLeft in interface StereoChipInterface

setRight

public void setRight(AEChip right)
Specified by:
setRight in interface StereoChipInterface

swapEyes

public void swapEyes()
swaps the left and right hardware channels. This method can be used if the hardware interfaces are incorrectly assigned.

Specified by:
swapEyes in interface StereoChipInterface

getNumCellTypes

public int getNumCellTypes()
Overrides:
getNumCellTypes in class AEChip

setHardwareInterface

public void setHardwareInterface(HardwareInterface hw)
Description copied from class: Tmpdiff128
overrides the Chip setHardware interface to construct a biasgen if one doesn't exist already. Sets the hardware interface and the bias generators hardware interface

Overrides:
setHardwareInterface in class Tmpdiff128
Parameters:
hw - the interface

getHardwareInterface

public HardwareInterface getHardwareInterface()
Builds and returns a StereoHardwareInterface for this stereo pair of devices. Unlike other chip objects, this one actually invokes the HardwareInterfaceFactory to construct the interfaces, because this device depends on a particular pair of interfaces.

Overrides:
getHardwareInterface in class Chip
Returns:
the hardware interface for this device

jAER project on SourceForge