interpolation

# interpolation - CS148 Introduction to Computer Graphics and...

This preview shows pages 1–4. Sign up to view the full content.

Page 1 CS148: Introduction to Computer Graphics and Imaging Interpolation and Basis Fns CS148 Lecture 7 Pat Hanrahan, Winter 2009 Topics Today ± Interpolation ± Linear and bilinear interpolation ± Barycentric interpolation ± Basis functions ± Square, triangle, …, ± Hermite cubic interpolation ± Interpolating random numbers to make noise Thursday ± Splines and curves ± Catmull-Rom splines ± Bezier curves

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Page 2 CS148 Lecture 7 Pat Hanrahan, Winter 2009 Interpolation Fill in between values Convert discrete (finite) to continuous (infinite) Examples: ± Interpolating across a triangle ± Interpolating between vertices ± Filtering and reconstructing images ± Interpolating between pixels/texels ± Creating random functions ± Noise ± Generating motion ± Interpolating “inbetween” frames from “keyframes” ± Curves and surfaces ± Interpolating between control points Interpolation
Page 3 CS148 Lecture 7 Pat Hanrahan, Winter 2009 Linear Interpolation CS148 Lecture 7 Pat Hanrahan, Winter 2009 Linear Interpolation - lerp One of the most useful functions in computer graphics lerp(t, v0, v1) { return (1-t)*v0 + t*v1; } lerp(t, v0, v1) { return v0 + t*(v1-v0); }

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 16

interpolation - CS148 Introduction to Computer Graphics and...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online