ch.unizh.ini.jaer.chip.stereopsis
Class Tmpdiff128StereoPair
java.lang.Object
java.util.Observable
net.sf.jaer.chip.Chip
net.sf.jaer.chip.Chip2D
net.sf.jaer.chip.AEChip
ch.unizh.ini.jaer.chip.retina.AERetina
ch.unizh.ini.jaer.chip.retina.Tmpdiff128
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
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 |
Tmpdiff128StereoPair
public Tmpdiff128StereoPair()
- Creates a new instance of Tmpdiff128StereoPair
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