advanced geometric modeling - university of...
TRANSCRIPT
UNIVERSITY OF
CALGARY
Advanced Geometric ModelingCPSC789
Faramarz SamavatiFall 2004
UNIVERSITY OF
CALGARY
General information aboutthe course
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
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
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
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
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
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)
Faramarz Samavati
UNIVERSITY OF
CALGARY Issues : General TopologyEasy for tensor-product and triangular patches
Faramarz Samavati
UNIVERSITY OF
CALGARY
Faramarz Samavati
UNIVERSITY OF
CALGARY
Faramarz Samavati
UNIVERSITY OF
CALGARY Issues : General TopologyHow about general topology surface?
Subdivision approach
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
Faramarz Samavati
UNIVERSITY OF
CALGARY Curve example
Faramarz Samavati
UNIVERSITY OF
CALGARY
Increase the resolution: Chaikinsubdivision
left: ¾ ¼
right: ¼ ¾
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 ¾)
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
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
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
Faramarz Samavati
UNIVERSITY OF
CALGARY
Examples
Faramarz Samavati
UNIVERSITY OF
CALGARY
3D Studio Max
Example of Doo Subdivision
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
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
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
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.
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 !!
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
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
Faramarz Samavati
UNIVERSITY OF
CALGARY Details as characteristic of the curves!
Faramarz Samavati
UNIVERSITY OF
CALGARY Result
Use captured details for simple base paths
Faramarz Samavati
UNIVERSITY OF
CALGARY Scan conversion
Faramarz Samavati
UNIVERSITY OF
CALGARY Digitizer to the control points
Faramarz Samavati
UNIVERSITY OF
CALGARY
scanned deformed
Application example –editing
Faramarz Samavati
UNIVERSITY OF
CALGARY Application: Flexible Editing
Stollnitz’s Paper
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
Faramarz Samavati
UNIVERSITY OF
CALGARY