advanced geometric modeling - university of...

28
UNIVERSITY OF CALGARY Advanced Geometric Modeling CPSC789 Faramarz Samavati Fall 2004 UNIVERSITY OF CALGARY General information about the course

Upload: lythu

Post on 05-Feb-2018

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

UNIVERSITY OF

CALGARY

Advanced Geometric ModelingCPSC789

Faramarz SamavatiFall 2004

UNIVERSITY OF

CALGARY

General information aboutthe course

Page 2: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

CPSC 789 – Advanced Geometric Modeling Fall 2004

Lecture Time and Place

ENF 334TR 9:30 – 10:45

Instructor : Faramarz Samavati

Office: MS 618

Office Hours: TR 11:00-12:00

Phone: 210 – 9454

Email: [email protected]

Home Page: www.cpsc.ucalgary.ca/~samavati

Faramarz Samavati

UNIVERSITY OF

CALGARYCourse Homepagehttp://pages.cpsc.ucalgary.ca/~samavati/cpsc789

Page 3: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY General InformationCourse Subjects

Introduction to spline modeling( Splines, B-spline , NURBS, parametric surfaces and volumes)Subdivision modeling (Knot insertion , curves and tensor product subdivision rules, arbitrary topology surface subdivision, data structures, Loop, Doo-Sabin, Butterfly and Catmull-Clark schemes, convergence and smoothness analysis, Eigen-analysis)Multiresolution modeling( wavelets, Harr wavelets, general formulation, filter banks, B-spline wavelets, reverse subdivision, progressive models, data structure) some new research results in subdivision and multiresolutionComplementary Topics :??

Grading Project %60(Proposal, Reading papers, research, implementation, presentation, technical report)Proposal Due: October 12In class exam %20( Tuesday , November 16, basic and fundamental materials)Assignment %20 (three)

Faramarz Samavati

UNIVERSITY OF

CALGARY Text

Eric J. Stollnitz, Anthony D. DeRose, and David H. SalesinWavelets for Computer Graphics: Theory and ApplicationsThe Morgan Kaufmann Publishers,1996

Page 4: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

ReferencesGerald FarinCurves and Surfaces for CAGD: A Practical Guide, Fifth EditionThe Morgan Kaufmann Publishers, October 2001ISBN 1-55860-737-4

Online course: -myself-Subdivision for modeling and animation, course notes for SIGGRAPH 2000, D.Zorin, et.al.

J.Warren and H. Weimer,Subdivision methods for geometric design, The Morgan Kaufmann Publishers, 2002

Armin Iske (Editor), Ewald Quak (Editor), Michael S. Floater (Editor)Tutorials on Multiresolution in Geometric ModellingSpringer, 2002.

Les Piegl and Wayne TillerThe NURBS Book,Springer, 1995.

UNIVERSITY OF

CALGARY

Overview of the course

Page 5: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

geometric descriptions of objectsspecial case of mathematical modelingthe visual features are important

Geometric Modeling

Mathematical Models (geometrical)

?

Faramarz Samavati

UNIVERSITY OF

CALGARY Umm!? Mathematical Modeling!

S

Page 6: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Spline Modeling

First try : polynomial models

Piecewise polynomial

User Interaction!: Control points are used to define models

More general than Bezier curves and surfaces

Faramarz Samavati

UNIVERSITY OF

CALGARY B-spline Models

Input: control points

Output: piecewise polynomial

Basis functions evaluation

Support

Page 7: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY B-spline ImportanceMost effective modeling technique in Computer

Graphics , CAD/CAM, approximation theory and

sampling[1]

[1] M. Unser, "Splines: A Perfect Fit for Medical Imaging,“

Keynote address, Proceedings of the SPIE International Symposium on Medical Imaging:

Image Processing (MI'02).

Faramarz Samavati

UNIVERSITY OF

CALGARY Issues : Basis function evaluation Basis function evaluation is not an efficient method (real time application)

Page 8: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Issues : General TopologyEasy for tensor-product and triangular patches

Faramarz Samavati

UNIVERSITY OF

CALGARY

Page 9: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

Faramarz Samavati

UNIVERSITY OF

CALGARY Issues : General TopologyHow about general topology surface?

Subdivision approach

Page 10: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Increase the resolution: A Simple Algorithm

Faramarz Samavati

UNIVERSITY OF

CALGARY

Increase the resolution: a Simple algorithm

Step Function : First order spline

Basis (Scaling) functions: first order Bsplines

Discontinuous and Blocky

No overall smoothness

Page 11: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Curve example

Faramarz Samavati

UNIVERSITY OF

CALGARY

Increase the resolution: Chaikinsubdivision

left: ¾ ¼

right: ¼ ¾

Page 12: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

Faramarz Samavati

UNIVERSITY OF

CALGARY

Increase the resolution: Chaikinsubdivision

A better algorithm

Third order (quadratic ) spline

Scaling functions: third order Bspline

First level of smoothness

Corner cutting

Filter values (left: ¾ ¼ right: ¼ and ¾)

Page 13: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Analysis of the Subdivision methodsNecessary properties:

Affine invarianceConvergence Smoothness

Analysis of Subdivision schemes

convergence ?smoothness ?

Faramarz Samavati

UNIVERSITY OF

CALGARY SubdivisionCoarse points fine points

Ck+1= PkCk

Pk has a regular banded structure

No need to the basis functions

subdivision

Page 14: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

From Chaikin to Doo-Sabin Subdivision3D corner cutting method

Generalization of Chaikin

Each step =2 stages

Contracting and adjoining

Faramarz Samavati

UNIVERSITY OF

CALGARY One Step of Doo Subdivision

One Step of Subdivision (F,V) (NF,NV)

Line Face Curve Surface

Page 15: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Edge-to-faces

New Contracted Face

New Contracted Face

Faramarz Samavati

UNIVERSITY OF

CALGARY Mask DetailsInterior vertices

9/16 3/16

3/16 1/16

n= number of vertices on face

Page 16: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

Examples

Faramarz Samavati

UNIVERSITY OF

CALGARY

3D Studio Max

Example of Doo Subdivision

Page 17: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Applications

Faramarz Samavati

UNIVERSITY OF

CALGARY Multiresolution decreasing and increasing of the resolution at the same time

Time and space efficiencies (non-redundancy)

decomposition reconstruction

Page 18: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY ApplicationsImage pyramid: refine solution progressively

Compression

Faramarz Samavati

UNIVERSITY OF

CALGARY Multiresolution filter matrices

decomposition and reconstruction filters (matrices)

F CD

A

BFC

D

P

Q

C=A*FD=B*F

F=P*C+Q*D

Page 19: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Wavelets A good approach to find the filters

F CD

A

B

FCD

P

Q

Faramarz Samavati

UNIVERSITY OF

CALGARY Wavelets as Underlying FunctionUsing underlying

functions

B-spline

Wavelets

Our idea : constructing a multiresolution by reversing subdivision

Avoiding underlying functions

Subdivision

Reversing subdivision

Page 20: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Multiresolution filter matrices : Haar

Haar wavelets : extension on of the very simple algorithm (duplicating of pixels)simple to implement but …

F CD

A

BFC

D

P

Q

C=A*FD=B*F

F=P*C+Q*D

Faramarz Samavati

UNIVERSITY OF

CALGARY Bspline waveletsnot simple as Haar, however better result

[1] M. Unser, "Splines: A Perfect Fit for Medical Imaging," Keynote address, Proceedings

of the SPIE International Symposium on Medical Imaging: Image Processing (MI'02).

[2] A.Aldroubi, M. Eden, M. Unser, “Discrete spline filters for multiresolutions and

wavelets of L2”, SIAM J,Math. Anal. 25(1994) 1412-1432.

[3] F.F.Samavati and R.H.Bartels,”Multiresolution curve and surface representation by reversing subdivision rules”. Computer Graphics Forum, 18(2), 97-119, June 1999.

[4] R.H. Bartels and F. F. Samavati,” Reversing Subdivision Rules: Local Linear Conditions and Observations on Inner Products”, Journal of Computational and Applied Mathematics, Vol. 119, Issue 1-2, pp. 29-67, 2000.

Page 21: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY A filter for Chaikin (width 4)

Typical row of A is

Same magic numbers !!

The simplest result :

Faramarz Samavati

UNIVERSITY OF

CALGARY B Filter (width 4)

Typical row of B is

Again the same numbers !!

Page 22: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Q Filter (width 4)

Typical column

Faramarz Samavati

UNIVERSITY OF

CALGARY

Results

HaarPSNR=36.86Level of decomposition from : 2All details are removed

ChaikinPSNR=37.91Level of decomposition from : 2All details are removed

Page 23: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

1)original : 514 x 3862) Haar

one level of decomposition50% of details,PSNR=45.91

3) Chaikinone level of decomposition50% of detailsPSNR=48.2

4) Haartwo levels of decomposition

0% of details,PSNR=36.86

5) Chaikin, two levels of decomposition0% of detailsPSNR=37.91

12 3

4 5

Faramarz Samavati

UNIVERSITY OF

CALGARY Movie, VolumeA movie is a sequence of frames.

Manipulate resolution of time t

Transformation along a set of rays

that the value of a pixel changing over time

Image :

I(x,y)=intensity of pixel at (x,y)

Volume:

I(x,y,z)= intensity (density of material) at (x,y,z)

u

v t

Page 24: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Details as characteristic of the curves!

Faramarz Samavati

UNIVERSITY OF

CALGARY Result

Use captured details for simple base paths

Page 25: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Scan conversion

Faramarz Samavati

UNIVERSITY OF

CALGARY Digitizer to the control points

Page 26: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY

scanned deformed

Application example –editing

Faramarz Samavati

UNIVERSITY OF

CALGARY Application: Flexible Editing

Stollnitz’s Paper

Page 27: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY Result (flexible editing)

Faramarz Samavati

UNIVERSITY OF

CALGARY Texture Mapping

Carry texture from coarse mesh over all finer meshes

Add texture coordinates (t,s) to vertex coordinates

Use subdivision scheme for control vertices in R5

Page 28: Advanced Geometric Modeling - University of Calgarypages.cpsc.ucalgary.ca/~samavati/cpsc789/slides/n_introd.pdf · Tutorials on Multiresolution in Geometric Modelling Springer, 2002

Faramarz Samavati

UNIVERSITY OF

CALGARY