20
1 Image-B as ed R endering Image-B as ed R endering Us ing Image Warping Us ing Image Warping L eonard McMillan L CS Computer Graphics Group MIT Conventional 3-D Graphics Conventional 3-D Graphics S imulation

Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

  • Upload
    hoangtu

  • View
    234

  • Download
    3

Embed Size (px)

Citation preview

Page 1: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

1

Image-Based RenderingImage-Based RenderingUs ing Image WarpingUs ing Image Warping

Leonard McMillanLCS Computer Graphics Group

MIT

Conventional 3-D GraphicsConventional 3-D Graphics

✔S imulation

Page 2: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

2

Computer Vis ionComputer Vis ion

✔Analys is

T he Image-Based ApproachT he Image-Based Approach

✔T ransformation

Page 3: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

3

Images as a Collection of RaysImages as a Collection of Rays

An image is a subset of the rays seen from a given point- this “space” of rays occupies two dimens ions

T he Plenoptic FunctionT he Plenoptic Function

✔T he set of rays seen from all points ...

),,,,,,( tzyxPp λφθ=

Page 4: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

4

Image-based rendering is aboutImage-based rendering is about

…reconstructing a plenoptic function froma set of samples taken from it.

✔Ignoring time, and selecting a discreteset of wavelengths gives a 5-Dplenoptic function

Where to Begin?Where to Begin?

✔Pinhole camera model

z Defines a mapping fromimage points to raysin space

Page 5: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

5

Mapping from Rays to PointsMapping from Rays to Points

✔S imple Derivation

CorrespondenceCorrespondence

( )( )

,

( ) 111

2211

21

2

111

2211

21

2

111

21211

222

11121222

11112222

2121

1

11

2

xPPCCPx

xPPCCPx

xPPtCCPxt

xPtCCxPt

xPtCxPtC

He

t

ttt

&

�������

&

&��&

&��&

&��&

&�&�

&

−−

δ

−−

−−

+−=

+−=

+−=

+−=

+=+

Page 6: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

6

Planar Warping EquationPlanar Warping Equation

( ) ( ) 111

2211

212 xPPCCPxx&��&

�& −− +−δ=

C2

.

C1

.

X.

P1x1P2x2

δ(x1)(C1-C2 ). .

P1x1

r

P1x1δ(x1)(C1-C3 ). .

C3

.

Resulting Warping FunctionResulting Warping Function

✔A perturbed planar warp ...

12122 xHex&&& +δ=

Page 7: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

7

S pecial CaseS pecial Case

✔A s imple Planar warp

1212 xHx&& =

Warping in ActionWarping in Action

✔A 3D Warp

Page 8: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

8

Vis ibilityVis ibility

✔ T he warping equation determines where points go…

… but that is not sufficient

Partition Reference ImagePartition Reference Image

✔ Project the des ired center-of-projection onto thereference image

Page 9: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

9

EnumerationEnumeration

✔ Drawing toward the projected point guarantees anocclus ion compatible ordering

✔ Ordering is cons is tent witha painter's algorithm

✔ Independent of thescene's contents

✔ Eas ily generalized toother viewing surfaces

✔ No auxiliary informationrequired

ReconstructionReconstruction

✔ T ypical images are discrete, not continuous

✔ An image can be formed by different geometries

Page 10: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

10

Gauss ian Gauss ian Cloud ModelCloud Model

✔ Represents samples asGauss ian cloud dens ities

✔ Excess ive exposureerrors

Bilinear Patch ModelBilinear Patch Model

✔ F its a bilinear patchthrough grid points inreference image

✔ Excess ive occlus ionerrors

Page 11: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

11

Comparison of ModelsComparison of Models

✔ Gauss ian-CloudModel

z E xcess ive exposure errors

z Pinhole problems

z Generally preferred

✔ B ilinear-Patch Model

z Excessive occlusion errors

z Rasterization H/W

z Difficult to navigate

Problems with Planar CamerasProblems with Planar Cameras

✔ Invis ible occluder problem

✔ 5 intrins ic parameters

✔ Non-uniform sampling of solidangle

Page 12: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

12

Panoramic CamerasPanoramic Cameras

✔ Warping equation can be eas ily adapted

✔ Vis ibility algorithm works

✔ Nonlinear mapping functions

ExamplesExamples

✔Cylindrical camera

Page 13: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

13

Constructing PanoramasConstructing Panoramas

✔ Images are related bya projective transforms

✔ Optimization problemz maximize normalized correlationz minimize sum of squared error

1212 xHx&& =

Initial Guesses and ConstraintsInitial Guesses and Constraints

✔ S um of angles is 2πz constrains focal length

✔ S kew of camera is near 0

✔ Aspect ratio near 1

Page 14: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

14

F inding DisparityF inding Disparity

✔How to get itz 3-D laser scannersz Depth-from-stereoz Depth-from-motionz Depth-from-focusz Depth-from-light-fieldsz Manual layer segmentation

✔How accurate must it be?

Visual HullsVisual Hulls

✔Depth-from-s ilhouettes✔S imple computer vis ion methods

z blue screeningz image differencing

✔Can be computed in image space

Page 15: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

15

Image-based Visual HullsImage-based Visual Hulls

✔Volume-like✔S elf-cons is tent✔Discrete-

discrete-continuous

Depth from Redundant S tructureDepth from Redundant S tructure

✔Light fields for depth acquis ition

z Depth-from- stereo- motion- focus- s ilhouettes

Page 16: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

16

Comparing Rendering ApproachesComparing Rendering Approaches

✔Geometry Basedz Forward Mapping (graphics pipeline)z Inverse Mapping (ray tracing)

✔Image basedz Greater spatial coherence

z Lower depth complexity

Image-Based PipelineImage-Based Pipeline

Page 17: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

17

Forward-warpingForward-warping

✔S ingle depth value per pixel

Forward-Mapped Visual HullForward-Mapped Visual Hull

✔Draws a line segment for each interval

Page 18: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

18

Merging Forward WarpsMerging Forward Warps

✔Draw textured line segments

Image-Based Ray T racingImage-Based Ray T racing

✔Inverse warping

Page 19: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

19

Algorithm PropertiesAlgorithm Properties

✔S earch is confined to a line

✔F irs t intersection is closest point

✔Incremental line drawing

✔Reconstruction in reference image

✔Work is proportional to s ize of outputimage

Applications of IBRApplications of IBR

✔ IBR combined with traditional methods✔Decouples rendering from interaction✔Latency compensation

Page 20: Image-Based Rendering Using Image Warping - Paul … · Image-Based Rendering Using Image Warping ... A 3D Warp. 8 ... z Manual layer segmentation How accurate mus t it be?

20

Conclus ionsConclus ions

✔IBR providesz new representations for 3D graphics

- easy to acquire- allows efficient rendering

z scalable performance- depends on number of pixels rather than the

number of geometric primitives

z amenable to HW acceleration