Git Product home page Git Product logo

skymodel's Introduction

This is a MATLAB implementation of the Perez sky model [1] that we've 
re-parameterized as a function of common camera parameters, as explained in 
our IJCV 2010 paper [2].

See the following website for more information:

http://graphics.cs.cmu.edu/projects/sky/


=== TEST FILE ===

Use the file 'synthesizeSky.m' as a starting point. 


=== SKY MODEL ===

These files synthesize the sky model based on camera parameters as inputs:
- exactSkyModel.m: Synthesizes the full sky model;
- exactGradientModel.m: Synthesizes only the "gradient" part of the sky model;
- exactSunModel.m: Synthesizes only the "sun" part of the sky model.

These files synthesize the sky model based on angles as inputs (Perez sky model):
- perezSkyModel.m: Synthesizes the full sky model;
- perezGradientModel.m: Synthesizes only the "gradient" part of the sky model;
- perezSunModel.m: Synthesizes only the "sun" part of the sky model.

Useful files that convert from pixel coordinates to angles:
- pixelAzimuthAngle.m: Converts from pixels to azimuth angle;
- pixelZenithAngle.m: Converts from pixels to zenith angle.


=== TURBIDITY ===

These files deal with converting the turbidity to the Perez weather 
coefficients (in 3 channels in xyY color space, as in [3]):

- convertTurbidityToSkyParams.m: Converts turbidity to the weather 
  coefficients;
- getTurbidityMapping.m: Returns the turbidity mapping between the weather 
  coefficients in each channel.

=== REFERENCES ===

[1]	R. Perez, R. Seals, and J. Michalsky, "All-weather model for sky 
luminance distribution -- preliminary configuration and validation," Solar 
Energy, vol. 50, no. 3, pp. 235--245, Mar. 1993.

[2]	J.-F. Lalonde, S. G. Narasimhan, and A. A. Efros, "What do the sun and 
the sky tell us about the camera?," International Journal of Computer
Vision, vol. 88, no. 1, pp. 24--51, May 2010.

[3]	A. J. Preetham, P. Shirley, and B. Smits, "A practical analytic model 
for daylight," presented at the Proceedings of ACM SIGGRAPH 1999, 1999.


=== CHANGELOG ===

09/18/12: Now using github! See commit messages for changelogs. 
09/21/11: Added missing file 'exactGradientModelRatio.m'. Thanks to A. 
Ravichandran for pointing this out!

skymodel's People

Contributors

jflalonde avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.