Function Representation - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

Function Representation

Description:

Title: Function Representation & Spherical Harmonics Author: Jaroslav K iv nek Last modified by: jarda Created Date: 1/26/2003 7:16:40 AM Document presentation format – PowerPoint PPT presentation

Number of Views:64
Avg rating:3.0/5.0
Slides: 24
Provided by: Jaros81
Category:

less

Transcript and Presenter's Notes

Title: Function Representation


1
Function Representation Spherical Harmonics
2
Function approximation
  • G(x) ... function to represent
  • B1(x), B2(x), Bn(x) basis functions
  • G(x) is a linear combination of basis functions
  • Storing a finite number of coefficients ci gives
    an approximation of G(x)

3
Examples of basis functions
Tent function (linear interpolation)
Associated Legendre polynomials
4
Function approximation
  • Linear combination
  • sum of scaled basis functions

5
Function approximation
  • Linear combination
  • sum of scaled basis functions

6
Finding the coefficients
  • How to find coefficients ci?
  • Minimize an error measure
  • What error measure?
  • L2 error

Approximated function
Original function
7
Finding the coefficients
  • Minimizing EL2 leads toWhere

8
Finding the coefficients
  • Matrixdoes not depend on G(x)
  • Computed just once for a given basis

9
Finding the coefficients
  • Given a basis Bi(x)
  • Compute matrix B
  • Compute its inverse B-1
  • Given a function G(x) to approximate
  • Compute dot products
  • (next slide)

10
Finding the coefficients
  • Compute coefficients as

11
Orthonormal basis
  • Orthonormal basis means
  • If basis is orthonormal then

12
Orthonormal basis
  • If the basis is orthonormal, computation of
    approximation coefficients simplifies to
  • We want orthonormal basis functions

13
Orthonormal basis
  • Projection How similar is the given basis
    function to the function were approximating

Original function
Basis functions
Coefficients
14
Another reason for orthonormal basis functions
  • Intergral of product dot product of coefficients

15
Application to GI
  • Illumination integral
  • Lo ? Li(wi) BRDF (wi) cosqi dwi

16
Spherical Harmonics
17
Spherical harmonics
  • Spherical function approximation
  • Domain I unit sphere S
  • directions in 3D
  • Approximated function G(?,f)
  • Basis functions Yi(?,f) Yl,m(?,f)
  • indexing i l (l1) m

18
The SH Functions
19
Spherical harmonics
  • K normalization constant
  • P Associated Legendre polynomial
  • Orthonormal polynomial basis on (0,1)
  • In general Yl,m(?,f) K . ?(f) . Pl,m(cos ?)
  • Yl,m(?,f) is separable in ? and f

20
Function approximation with SH
  • napproximation order
  • There are n2 harmonics for order n

21
Function approximation with SH
  • Spherical harmonics are orthonormal
  • Function projection
  • Computing the SH coefficients
  • Usually evaluated by numerical integration
  • Low number of coefficients
  • ? low-frequency signal

22
Function approximation with SH
23
Product integral with SH
  • Simplified indexing
  • Yi Yl,m
  • i l (l1) m
  • Two functions represented by SH
Write a Comment
User Comments (0)
About PowerShow.com