Treehopper C++ API
Utility Class Reference

#include <Utility.h>

Static Public Member Functions

static double brightnessToCieLuminance (double brightness)
 Returns the CIE 1976 relative luminance calculated from an input intensity (brightness) More...
 

Member Function Documentation

◆ brightnessToCieLuminance()

static double brightnessToCieLuminance ( double  brightness)
inlinestatic
Parameters
brightnessThe input intensity, from 0.0-1.0, to convert
Returns
The CIE 1976 relative luminance, normalized to a 0-1 scale

"Brightness" is perception oriented for intuitiveness. This function can be used to convert the perceptual value to a normalized luminance value that an LED driver can use to determine the correct PWM duty cycle or analog current drive strength needed to produce the associated brightness.


The documentation for this class was generated from the following file: