Header.
More...
#include "BasicTypes.h"
#include <boost/assert.hpp>
#include <algorithm>
#include <iterator>
Go to the source code of this file.
|
| osvr |
| The main namespace for all C++ elements of the framework, internal and external.
|
|
Header.
- Date
- 2015
- Author
- Sensics, Inc. http://sensics.com/osvr
§ findMinMaxBrightness()
BrightnessMinMax osvr::vbtracker::findMinMaxBrightness |
( |
const BrightnessList & |
brightnesses | ) |
|
|
inline |
Helper function for implementations of LedIdentifier to find the minimum and maximum values in a non-empty list of brightnesses.
§ getBitsUsingThreshold()
LedPatternWrapped osvr::vbtracker::getBitsUsingThreshold |
( |
const BrightnessList & |
brightnesses, |
|
|
float |
threshold |
|
) |
| |
|
inline |
Helper for implementations of LedIdentifier to turn a brightness list into a boolean list based on thresholding on the halfway point between minimum and maximum brightness.
§ truncateBrightnessListTo()
void osvr::vbtracker::truncateBrightnessListTo |
( |
BrightnessList & |
brightnesses, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Helper for implementations of LedIdentifier to truncate the passed-in brightness list to the maximum useful length.
- Todo:
- has to be a more efficient method.