OSVR-Core
Namespaces | Functions
IdentifierHelpers.h File Reference

Header. More...

#include "BasicTypes.h"
#include <boost/assert.hpp>
#include <algorithm>
#include <iterator>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 

Functions

void osvr::vbtracker::truncateBrightnessListTo (BrightnessList &brightnesses, size_t n)
 Helper for implementations of LedIdentifier to truncate the passed-in brightness list to the maximum useful length. More...
 
BrightnessMinMax osvr::vbtracker::findMinMaxBrightness (const BrightnessList &brightnesses)
 Helper function for implementations of LedIdentifier to find the minimum and maximum values in a non-empty list of brightnesses. More...
 
LedPatternWrapped osvr::vbtracker::getBitsUsingThreshold (const BrightnessList &brightnesses, float threshold)
 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. More...
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr

Function Documentation

§ 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.