interpolation

interpolation - CS148: Introduction to Computer Graphics...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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); }
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 16

interpolation - CS148: Introduction to Computer Graphics...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online