CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2013.

Slides:



Advertisements
Similar presentations
Lecture 19: Parallel Algorithms
Advertisements

Vector Calculus Mengxia Zhu Fall Objective Review vector arithmetic Distinguish points and vectors Relate geometric concepts to their algebraic.
General Physics (PHYS101)
Informationsteknologi Wednesday, November 7, 2007Computer Graphics - Class 51 Today’s class Geometric objects and transformations.
CS 450: Computer Graphics OVERVIEW OF POLYGONS
Computational Geometry & Collision detection
Lecture 9: Introduction to Matrix Inversion Gaussian Elimination Sections 2.4, 2.5, 2.6 Sections 2.2.3, 2.3.
5/1/2000Deepak Bandyopadhyay / UNC Chapel Hill 1 Extended Quadric Error Functions for Surface Simplification Deepak Bandyopadhyay COMP 258 F2000 Project.
CENG 789 – Digital Geometry Processing 05- Smoothing and Remeshing
CS 4731: Computer Graphics Lecture 6: Points, Scalars and Vectors Emmanuel Agu.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Computer Graphics using OpenGL, 3 rd Edition F. S. Hill, Jr. and S. Kelley Chapter Vector Tools for Graphics.
Class 25: Question 1 Which of the following vectors is orthogonal to the row space of A?
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 11: Quadric Error Metrics Ravi Ramamoorthi Some material.
Visualization and graphics research group CIPIC January 21, 2003Multiresolution (ECS 289L) - Winter Surface Simplification Using Quadric Error Metrics.
Vectors.
ECS 289L A Survey of Mesh-Based Multiresolution Representations Ken Joy Center for Image Processing and Integrated Computing Computer Science Department.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 10: Mesh simplification Ravi Ramamoorthi Many slides courtesy.
Linear Algebra Review CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2014.
2IV60 Computer Graphics Basic Math for CG
Multiplication with Vectors
Length and Dot Product in R n Notes: is called a unit vector. Notes: The length of a vector is also called its norm. Chapter 5 Inner Product Spaces.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
CSE554AlignmentSlide 1 CSE 554 Lecture 8: Alignment Fall 2014.
CSE554Laplacian DeformationSlide 1 CSE 554 Lecture 8: Laplacian Deformation Fall 2012.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Mathematics for Computer Graphics (Appendix A) Won-Ki Jeong.
Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,
Surface Simplification Using Quadric Error Metrics Michael Garland Paul S. Heckbert.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Quadric Error Metrics 1/20 Quadric Error Metrics.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
CSE554AlignmentSlide 1 CSE 554 Lecture 5: Alignment Fall 2011.
Course 12 Calibration. 1.Introduction In theoretic discussions, we have assumed: Camera is located at the origin of coordinate system of scene.
1 Math Review Coordinate systems 2-D, 3-D Vectors Matrices Matrix operations.
DPL10/16/2015 CS 551/651: Simplification Continued David Luebke
1 Dr. Scott Schaefer Surface Simplification. 2/32 Surface Simplification Given a closed polygon model, reduce the number of polygons and maintain appearance.
Surface Simplification Using Quadric Error Metrics Garland & Heckbert Siggraph 97.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
CSE554Fairing and simplificationSlide 1 CSE 554 Lecture 6: Fairing and Simplification Fall 2012.
CSE554AlignmentSlide 1 CSE 554 Lecture 8: Alignment Fall 2013.
Mesh Coarsening zhenyu shu Mesh Coarsening Large meshes are commonly used in numerous application area Modern range scanning devices are used.
CGDD 4003 THE MATH LECTURE (BOILED DOWN, YET LIGHTLY SALTED)
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 8 Ravi Ramamoorthi
CS418 Computer Graphics John C. Hart
CSE554FairingSlide 1 CSE 554 Lecture 6: Fairing Fall 2015.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 9 Ravi Ramamoorthi
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Determining 3D Structure and Motion of Man-made Objects from Corners.
Mesh Resampling Wolfgang Knoll, Reinhard Russ, Cornelia Hasil 1 Institute of Computer Graphics and Algorithms Vienna University of Technology.
Vectors and the Geometry of Space Section 10.4 Lines and Planes in Space 2015.
Parameter estimation class 5 Multiple View Geometry CPSC 689 Slides modified from Marc Pollefeys’ Comp
CSE 681 Brief Review: Vectors. CSE 681 Vectors Basics Normalizing a vector => unit vector Dot product Cross product Reflection vector Parametric form.
Computer Graphics Mathematical Fundamentals Lecture 10 Taqdees A. Siddiqi
Linear Algebra Review Tuesday, September 7, 2010.
Computer Graphics Lecture 11 2D Transformations I Taqdees A. Siddiqi
3D Ojbects: Transformations and Modeling. Matrix Operations Matrices have dimensions: Vectors can be thought of as matrices: v=[2,3,4,1] is a 1x4 matrix.
CSE 681 Brief Review: Vectors. CSE 681 Vectors Direction in space Normalizing a vector => unit vector Dot product Cross product Parametric form of a line.
CSE 554 Lecture 8: Alignment

Outline Addition and subtraction of vectors Vector decomposition
Lecture 03: Linear Algebra
CSE 554 Lecture 9: Laplacian Deformation
Joshua Barczak CMSC 435 UMBC
Fitting Curve Models to Edges
Math review - scalars, vectors, and matrices
Presentation transcript:

CSE554SimplificationSlide 1 CSE 554 Lecture 7: Simplification Fall 2013

CSE554SimplificationSlide 2 Geometry Processing Fairing (smoothing) – Relocating vertices to achieve a smoother appearance – Method: centroid averaging Simplification – Reducing vertex count Deformation – Relocating vertices guided by user interaction or to fit onto a target

CSE554SimplificationSlide 3 Points and Vectors Same representation, but different meanings and operations – Vectors can add, scale – Points can add with vectors – Points can add with points, only using affine combination x Y 1 2 2

CSE554SimplificationSlide 4 Dot product (in both 2D and 3D) – Result is a scalar – In coordinates (simple!) 2D: 3D: Matrix product between a row and a column vector More Vector Operations

CSE554SimplificationSlide 5 Uses of dot products – Angle between vectors: Orthogonal: – Projected length of onto : More Vector Operations h

CSE554SimplificationSlide 6 Cross product (only in 3D) – Result is another 3D vector Direction: Normal to the plane where both vectors lie (right-hand rule) Magnitude: – In coordinates: More Vector Operations

CSE554SimplificationSlide 7 More Vector Operations Uses of cross products – Getting the normal vector of the plane E.g., the normal of a triangle formed by – Computing area of the triangle formed by Testing if vectors are parallel:

CSE554SimplificationSlide 8 More Vector Operations Dot ProductCross Product Distributive? Commutative? Associative? (Sign change!)

CSE554SimplificationSlide 9 Simplification (2D) Representing the shape with fewer vertices (and edges) 200 vertices50 vertices

CSE554SimplificationSlide 10 Simplification (2D) If I want to replace two vertices with one, where should it be?

CSE554SimplificationSlide 11 Simplification (2D) If I want to replace two vertices with one, where should it be? – Shortest distances to the supporting lines of involved edges After replacement:

CSE554SimplificationSlide 12 Simplification (2D) Distance to a line – Line represented as a point q on the line, and a perpendicular unit vector (the normal) n To get n: take a vector {x,y} along the line, n is {-y,x} followed by normalization – Distance from any point p to the line: Projection of vector (p-q) onto n – This distance has a sign “Above” or “under” of the line We will use the distance squared Line

CSE554SimplificationSlide 13 Simplification (2D) Closed point to multiple lines – Sum of squared distances from p to all lines (Quadratic Error Metric, QEM) Input lines: – We want to find the p with the minimum QEM Since QEM is a convex quadratic function of p, the minimizing p is where the derivative of QEM is zero, which is a linear equation

CSE554SimplificationSlide 14 Simplification (2D) Minimizing QEM – Writing QEM in matrix form 2x2 matrix1x2 column vectorScalar [Eq. 1] Matrix (dot) product Row vector Matrix transpose

CSE554SimplificationSlide 15 Simplification (2D) Minimizing QEM – Solving the zero-derivative equation: – A linear system with 2 equations and 2 unknowns (p x,p y ) Using Gaussian elimination, or matrix inversion: [Eq. 2]

CSE554SimplificationSlide 16 Simplification (2D) What vertices to merge first? – Pick the ones that lie on “flat” regions, or whose replacing vertex introduces least QEM error. 

CSE554SimplificationSlide 17 Simplification (2D) The algorithm – Step 1: For each edge, compute the best vertex location to replace that edge, and the QEM at that location. Store that location (called minimizer) and its QEM with the edge.

CSE554SimplificationSlide 18 Simplification (2D) The algorithm – Step 1: For each edge, compute the best vertex location to replace that edge, and the QEM at that location. Store that location (called minimizer) and its QEM with the edge. – Step 2: Pick the edge with the lowest QEM and collapse it to its minimizer. Update the minimizers and QEMs of the re-connected edges.

CSE554SimplificationSlide 19 Simplification (2D) The algorithm – Step 1: For each edge, compute the best vertex location to replace that edge, and the QEM at that location. Store that location (called minimizer) and its QEM with the edge. – Step 2: Pick the edge with the lowest QEM and collapse it to its minimizer. Update the minimizers and QEMs of the re-connected edges.

CSE554SimplificationSlide 20 Simplification (2D) The algorithm – Step 1: For each edge, compute the best vertex location to replace that edge, and the QEM at that location. Store that location (called minimizer) and its QEM with the edge. – Step 2: Pick the edge with the lowest QEM and collapse it to its minimizer. Update the minimizers and QEMs of the re-connected edges. – Step 3: Repeat step 2, until a desired number of vertices is left.

CSE554SimplificationSlide 21 Simplification (2D) The algorithm – Step 1: For each edge, compute the best vertex location to replace that edge, and the QEM at that location. Store that location (called minimizer) and its QEM with the edge. – Step 2: Pick the edge with the lowest QEM and collapse it to its minimizer. Update the minimizers and QEMs of the re-connected edges. – Step 3: Repeat step 2, until a desired number of vertices is left.

CSE554SimplificationSlide 22 Simplification (2D) Step 1: Computing minimizer and QEM on an edge – Consider supporting lines of this edge and adjacent edges – Compute and store at the edge: The minimizing location p (Eq. 2) QEM (substitute p into Eq. 1) – Used for edge selection in Step 2 QEM coefficients (a, b, c) – Used for fast update in Step 2 Stored at the edge: [Eq. 1]

CSE554SimplificationSlide 23 Simplification (2D) Step 2: Collapsing an edge – Remove the edge and its vertices – Re-connect two neighbor edges to the minimizer of the removed edge – For each re-connected edge: Increment its coefficients by that of the removed edge – The coefficients are additive! Re-compute its minimizer and QEM Collapse : new minimizer locations computed from the updated coefficients

CSE554SimplificationSlide 24 Simplification (3D) The algorithm is similar to 2D – Replace two edge-adjacent vertices by one vertex Placing new vertices closest to supporting planes of adjacent triangles – Prioritize collapses based on QEM

CSE554SimplificationSlide 25 Simplification (3D) Distance to a plane (similar to the line case) – Plane represented as a point q on the plane, and a unit normal vector n For a triangle: n is the cross-product of two edge vectors – Distance from any point p to the plane: Projection of vector (p-q) onto n – This distance has a sign “above” or “below” the plane We use its square

CSE554SimplificationSlide 26 Simplification (3D) Closest point to multiple planes – Input planes: – QEM (same as in 2D) In matrix form: – Find p that minimizes QEM: A linear system with 3 equations and 3 unknowns (p x,p y,p z ) 3x3 matrix 1x3 column vector Scalar

CSE554SimplificationSlide 27 Simplification (3D) Step 1: Computing minimizer and QEM on an edge – Consider supporting planes of all triangles adjacent to the edge – Compute and store at the edge: The minimizing location p QEM[p] QEM coefficients (a, b, c) The supporting planes for all shaded triangles should be considered when computing the minimizer of the middle edge.

CSE554SimplificationSlide 28 Simplification (3D) Step 2: Collapsing an edge – Remove the edge with least QEM – Re-connect neighbor triangles and edges to the minimizer of the removed edge Remove “degenerate” triangles Remove “duplicate” edges – For each re-connected edge: Increment its coefficients by that of the removed edge Re-compute its minimizer and QEM Collapse Degenerate triangles after collapse Duplicate edges after collapse

CSE554SimplificationSlide 29 Simplification (3D) Example: 5600 vertices500 vertices

CSE554SimplificationSlide 30 Further Readings Fairing: – “A signal processing approach to fair surface design”, by G. Taubin (1995) No-shrinking centroid-averaging Google citations > 1000 Simplification: – “Surface simplification using quadric error metrics”, by M. Garland and P. Heckbert (1997) Edge-collapse simplification Google citations > 2000