ToneReproducer.hpp   StelToneReproducer.hpp 
skipping to change at line 19 skipping to change at line 19
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _TONEREPRODUCER_HPP_ #ifndef _STELTONEREPRODUCER_HPP_
#define _TONEREPRODUCER_HPP_ #define _STELTONEREPRODUCER_HPP_
//! Converts tones in function of the eye adaptation to luminance. //! Converts tones in function of the eye adaptation to luminance.
//! The aim is to get on the screen something which is perceptualy accurate , //! The aim is to get on the screen something which is perceptualy accurate ,
//! ie. to compress high dynamic range luminance to CRT display range. //! ie. to compress high dynamic range luminance to CRT display range.
//! The class perform mainly a fast implementation of the algorithm from th e //! The class perform mainly a fast implementation of the algorithm from th e
//! paper [1], with more accurate values from [2]. The blue shift formula i s taken //! paper [1], with more accurate values from [2]. The blue shift formula i s taken
//! from [3] and combined with the Scotopic vision formula from [4]. //! from [3] and combined with the Scotopic vision formula from [4].
//! //!
//! Important : you may call setDisplayAdaptationLuminance() //! Important : you may call setDisplayAdaptationLuminance()
//! and setWorldAdaptationLuminance() before any call to xyYToRGB() //! and setWorldAdaptationLuminance() before any call to xyYToRGB()
skipping to change at line 49 skipping to change at line 49
//! IEEE Computer Graphics & Application, November 1993 //! IEEE Computer Graphics & Application, November 1993
//! //!
//! [2] "Tone Reproduction and Physically Based Spectral Rendering", //! [2] "Tone Reproduction and Physically Based Spectral Rendering",
//! Devlin, Chalmers, Wilkie and Purgathofer in EUROGRAPHICS 2002 //! Devlin, Chalmers, Wilkie and Purgathofer in EUROGRAPHICS 2002
//! //!
//! [3] "Night Rendering", H. Wann Jensen, S. Premoze, P. Shirley, //! [3] "Night Rendering", H. Wann Jensen, S. Premoze, P. Shirley,
//! W.B. Thompson, J.A. Ferwerda, M.M. Stark //! W.B. Thompson, J.A. Ferwerda, M.M. Stark
//! //!
//! [4] "A Visibility Matching Tone Reproduction Operator for High Dynamic //! [4] "A Visibility Matching Tone Reproduction Operator for High Dynamic
//! Range Scenes", G.W. Larson, H. Rushmeier, C. Piatko //! Range Scenes", G.W. Larson, H. Rushmeier, C. Piatko
class ToneReproducer class StelToneReproducer
{ {
public: public:
//! Constructor //! Constructor
ToneReproducer(); StelToneReproducer();
//! Desctructor //! Desctructor
virtual ~ToneReproducer(); virtual ~StelToneReproducer();
//! Set the eye adaptation luminance for the display (and precompute what can be) //! 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 //! Usual luminance range is 1-100 cd/m^2 for a CRT screen
//! @param displayAdaptationLuminance the new display luminance in c d/m^2. The initial default value is 50 cd/m^2 //! @param displayAdaptationLuminance the new display luminance in c d/m^2. The initial default value is 50 cd/m^2
void setDisplayAdaptationLuminance(float displayAdaptationLuminance) ; void setDisplayAdaptationLuminance(float displayAdaptationLuminance) ;
//! Set the eye adaptation luminance for the world (and precompute w hat can be) //! Set the eye adaptation luminance for the world (and precompute w hat can be)
//! @param worldAdaptationLuminance the new world luminance in cd/m^ 2. The initial default value is 40000 cd/m^2 for Skylight //! @param worldAdaptationLuminance the new world luminance in cd/m^ 2. The initial default value is 40000 cd/m^2 for Skylight
//! Star Light : 0.001 cd/m^2 //! Star Light : 0.001 cd/m^2
//! Moon Light : 0.1 cd/m^2 //! Moon Light : 0.1 cd/m^2
skipping to change at line 165 skipping to change at line 165
float betaDa; float betaDa;
float alphaWa; float alphaWa;
float betaWa; float betaWa;
float alphaWaOverAlphaDa; float alphaWaOverAlphaDa;
float term2; float term2;
float lnTerm2; // log(term2) float lnTerm2; // log(term2)
float term2TimesOneOverMaxdLpOneOverGamma; float term2TimesOneOverMaxdLpOneOverGamma;
}; };
#endif // _TONEREPRODUCER_HPP_ #endif // _STELTONEREPRODUCER_HPP_
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/