cieblh
The cieblh function evaluates the Blue Light Hazard for a given spectral radiance L_{e,\lambda} according to CIE S 009. Any errors in the data set or in results generated with the Lighting Toolbox are not in the liability of the CIE nor me, see licence.
Usage:
blh = cieblh(lam,L,t)
Where:
| Parameter | Description | 
| blh | Is a struct containing the Blue Light Hazard value (BLH) according to the CIE, an indicator if the exposure is hazardeous (hazard = ‘yes’ or ‘no’) and the max allowed exposure time t_{max } in s. | 
| lam | Is a vector containing the wavelengths. For wavelength steps smaller than 1 nm, the function does a linear interpolation for the reference spectrum, as suggested by the CIE. | 
| L | Is a vector or a matrix containing the illuminant’s spectral radiance L_{e,\lambda} row-wise. | 
| t | Is the exposure time in s, scalar. | 
Examples:
Blue Light Hazard of the sun – standard illuminant ‘D65’ with 1 s exposure time:
lam = 380:780; Le = ciespec(lam,'D65',1.6e9); blh = cieblh(lam,Le,1)
See also: ciespec
Result:
blh =
   
      scalar structure containing the fields:
      BLH = 1.5761e+06
      hazard = 'yes'
      tmax = 0.6345
Blue Light Hazard for standard illuminant ‘LED-B1’ with 5 s exposure time:
lam = 380:780; Le = ciespec(lam,'LED-B1'); blh = cieblh(lam,Le,5)
See also: ciespec
Result:
blh =
    scalar structure containing the fields:
    BLH = 1317.5
    hazard = no
    tmax = 3795.2
Reference
CIE TN 002:2014: Relating Photochemical and Photobiological Quantities to Photometric Quantities. Commission International de l’Éclairage (CIE), Vienna Austria, 2014. URL: https://cie.co.at/publications/relating-photochemical-and-photobiological-quantities-photometric-quantities