org.stellarium
Class ToneReproductor

java.lang.Object
  extended by org.stellarium.ToneReproductor

public class ToneReproductor
extends java.lang.Object


Field Summary
(package private)  double alphaDa
           
(package private)  double alphaWa
           
(package private)  double alphaWaOverAlphaDa
           
(package private)  double betaDa
           
(package private)  double betaWa
           
(package private)  float gamma
           
private  double lda
           
(package private)  double lwa
           
(package private)  float maxDL
           
(package private)  double term2
           
 
Constructor Summary
ToneReproductor()
           
 
Method Summary
 float adaptLuminance(double world_luminance)
          Return adapted luminance from world to display
(package private)  void set_max_display_luminance(float _maxdL)
          Set the maximum display luminance : default value = 100 cd/m^2 This value is used to scale the RGB range
(package private)  void setDisplayAdaptationLuminance(double _Lda)
          Set the eye adaptation luminance for the display and precompute what can be Usual luminance range is 1-100 cd/m^2 for a CRT screen
(package private)  void setDisplayGamma(float _gamma)
          Set the display gamma : default value = 2.3
 void setWorldAdaptationLuminance(double _Lwa)
          Set the eye adaptation luminance for the world and precompute what can be
 void xyYToRGB(float[] color)
          Convert from xyY color system to RGB according to the adaptation The Y component is in cd/m^2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lda

private double lda

lwa

double lwa

maxDL

float maxDL

gamma

float gamma

alphaDa

double alphaDa

betaDa

double betaDa

alphaWa

double alphaWa

betaWa

double betaWa

alphaWaOverAlphaDa

double alphaWaOverAlphaDa

term2

double term2
Constructor Detail

ToneReproductor

ToneReproductor()
Method Detail

setDisplayAdaptationLuminance

void setDisplayAdaptationLuminance(double _Lda)
Set the eye adaptation luminance for the display and precompute what can be Usual luminance range is 1-100 cd/m^2 for a CRT screen

Parameters:
_Lda -

setWorldAdaptationLuminance

public void setWorldAdaptationLuminance(double _Lwa)
Set the eye adaptation luminance for the world and precompute what can be

Parameters:
_Lwa -

xyYToRGB

public void xyYToRGB(float[] color)
Convert from xyY color system to RGB according to the adaptation The Y component is in cd/m^2


set_max_display_luminance

void set_max_display_luminance(float _maxdL)
Set the maximum display luminance : default value = 100 cd/m^2 This value is used to scale the RGB range


setDisplayGamma

void setDisplayGamma(float _gamma)
Set the display gamma : default value = 2.3


adaptLuminance

public float adaptLuminance(double world_luminance)
Return adapted luminance from world to display