1 / 16

Functional Image Synthesis

Functional Image Synthesis. Pan. An image synthesis “language” Images are functions Continuous and infinite Embedded in a functional host language Reusable optimizing compiler. Examples. What’s an image?. Assignment of color to points: R 2  Color

Télécharger la présentation

Functional Image Synthesis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Functional Image Synthesis

  2. Pan • An image synthesis “language” • Images are functions • Continuous and infinite • Embedded in a functional host language • Reusable optimizing compiler

  3. Examples

  4. What’s an image? • Assignment of color to points: R2  Color • Infinite, but color may be transparent • Useful generalization: R2 a

  5. Expressing functions • Use l-calculus (Church, Curry, etc): • Or, non-anonymously: • Currying isomorphism: (ab)  ga  (b  g ) Good for partial application

  6. Spatial transforms

  7. Images

  8. Higher-order functions Apply filter “about” a point:

  9. Examples

  10. Programming example

  11. Another

  12. Some details

  13. Another

  14. Implementation • An “embedded language”, but compiled. • Programs manipulate expression trees. • Almost transparent, via overloading. • Automatic full inlining. • Simplification via smart constructors. • First-order CSE and loop hoisting. • Easy to reuse for new “language”.

  15. More examples

  16. Conclusions • Modular & efficient image synthesis • DSL design & implementation technique: • Simple, computable semantics • Embed in functional host language • Reusable optimizer & code generator • To try: sound, 3D, … • Freely available – try it out: http://research.microsoft.com/~conal/pan

More Related