OSVR-Core
|
Helper class to identify an LED based on its pattern of brightness over time. More...
#include <LedIdentifier.h>
Public Member Functions | |
virtual | ~LedIdentifier () |
Virtual destructor;. | |
virtual ZeroBasedBeaconId | getId (ZeroBasedBeaconId currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const =0 |
Determine the identity of the LED whose brightness pattern is passed in. More... | |
virtual | ~LedIdentifier () |
Virtual destructor;. | |
virtual int | getId (int currentId, BrightnessList &brightnesses, bool &lastBright, bool blobsKeepId) const =0 |
Determine the identity of the LED whose brightness pattern is passed in. More... | |
Helper class to identify an LED based on its pattern of brightness over time.
The base class defines the interface. The derived classes encode the pattern-detection algorithm for specific devices.
NOTE: This class may modify the passed-in list, truncating it so that old data points are removed once there are enough measurements to make an estimate.
The base class defines the interface. The derived classes encode the pattern-detection algorithm for specific devices.
NOTE: This class may modify the passed-in list, truncating it so that old data points are removed once there are enough measurements to make an estimate.
|
pure virtual |
Determine the identity of the LED whose brightness pattern is passed in.
Truncates the passed-in list to the length needed to look for a pattern, so it does not grow too long and waste space and time, and perhaps produce spurious Ids.
[out] | lastBright | set to True if we determine that the LED is currently "bright" |
Implemented in osvr::vbtracker::OsvrHdkLedIdentifier.
|
pure virtual |
Determine the identity of the LED whose brightness pattern is passed in.
Truncates the passed-in list to the length needed to look for a pattern, so it does not grow too long and waste space and time, and perhaps produce spurious Ids.
[out] | lastBright | set to True if we determine that the LED is currently "bright" |
Implemented in osvr::vbtracker::OsvrHdkLedIdentifier.