CSE 554 Lecture 9: Laplacian Deformation

Slides:



Advertisements
Similar presentations
Request Dispatching for Cheap Energy Prices in Cloud Data Centers
Advertisements

SpringerLink Training Kit
Luminosity measurements at Hadron Colliders
From Word Embeddings To Document Distances
Choosing a Dental Plan Student Name
Virtual Environments and Computer Graphics
Chương 1: CÁC PHƯƠNG THỨC GIAO DỊCH TRÊN THỊ TRƯỜNG THẾ GIỚI
THỰC TIỄN KINH DOANH TRONG CỘNG ĐỒNG KINH TẾ ASEAN –
D. Phát triển thương hiệu
NHỮNG VẤN ĐỀ NỔI BẬT CỦA NỀN KINH TẾ VIỆT NAM GIAI ĐOẠN
Điều trị chống huyết khối trong tai biến mạch máu não
BÖnh Parkinson PGS.TS.BS NGUYỄN TRỌNG HƯNG BỆNH VIỆN LÃO KHOA TRUNG ƯƠNG TRƯỜNG ĐẠI HỌC Y HÀ NỘI Bác Ninh 2013.
Nasal Cannula X particulate mask
Evolving Architecture for Beyond the Standard Model
HF NOISE FILTERS PERFORMANCE
Electronics for Pedestrians – Passive Components –
Parameterization of Tabulated BRDFs Ian Mallett (me), Cem Yuksel
L-Systems and Affine Transformations
CMSC423: Bioinformatic Algorithms, Databases and Tools
Some aspect concerning the LMDZ dynamical core and its use
Bayesian Confidence Limits and Intervals
实习总结 (Internship Summary)
Current State of Japanese Economy under Negative Interest Rate and Proposed Remedies Naoyuki Yoshino Dean Asian Development Bank Institute Professor Emeritus,
Front End Electronics for SOI Monolithic Pixel Sensor
Face Recognition Monday, February 1, 2016.
Solving Rubik's Cube By: Etai Nativ.
CS284 Paper Presentation Arpad Kovacs
انتقال حرارت 2 خانم خسرویار.
Summer Student Program First results
Theoretical Results on Neutrinos
HERMESでのHard Exclusive生成過程による 核子内クォーク全角運動量についての研究
Wavelet Coherence & Cross-Wavelet Transform
yaSpMV: Yet Another SpMV Framework on GPUs
Creating Synthetic Microdata for Higher Educational Use in Japan: Reproduction of Distribution Type based on the Descriptive Statistics Kiyomi Shirakawa.
MOCLA02 Design of a Compact L-­band Transverse Deflecting Cavity with Arbitrary Polarizations for the SACLA Injector Sep. 14th, 2015 H. Maesaka, T. Asaka,
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Fuel cell development program for electric vehicle
Overview of TST-2 Experiment
Optomechanics with atoms
داده کاوی سئوالات نمونه
Inter-system biases estimation in multi-GNSS relative positioning with GPS and Galileo Cecile Deprez and Rene Warnant University of Liege, Belgium  
ლექცია 4 - ფული და ინფლაცია
10. predavanje Novac i financijski sustav
Wissenschaftliche Aussprache zur Dissertation
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Particle acceleration during the gamma-ray flares of the Crab Nebular
Interpretations of the Derivative Gottfried Wilhelm Leibniz
Advisor: Chiuyuan Chen Student: Shao-Chun Lin
Widow Rockfish Assessment
SiW-ECAL Beam Test 2015 Kick-Off meeting
On Robust Neighbor Discovery in Mobile Wireless Networks
Chapter 6 并发:死锁和饥饿 Operating Systems: Internals and Design Principles
You NEED your book!!! Frequency Distribution
Y V =0 a V =V0 x b b V =0 z
Fairness-oriented Scheduling Support for Multicore Systems
Climate-Energy-Policy Interaction
Hui Wang†*, Canturk Isci‡, Lavanya Subramanian*,
Ch48 Statistics by Chtan FYHSKulai
The ABCD matrix for parabolic reflectors and its application to astigmatism free four-mirror cavities.
Measure Twice and Cut Once: Robust Dynamic Voltage Scaling for FPGAs
Online Learning: An Introduction
Factor Based Index of Systemic Stress (FISS)
What is Chemistry? Chemistry is: the study of matter & the changes it undergoes Composition Structure Properties Energy changes.
THE BERRY PHASE OF A BOGOLIUBOV QUASIPARTICLE IN AN ABRIKOSOV VORTEX*
Quantum-classical transition in optical twin beams and experimental applications to quantum metrology Ivano Ruo-Berchera Frascati.
The Toroidal Sporadic Source: Understanding Temporal Variations
FW 3.4: More Circle Practice
ارائه یک روش حل مبتنی بر استراتژی های تکاملی گروه بندی برای حل مسئله بسته بندی اقلام در ظروف
Decision Procedures Christoph M. Wintersteiger 9/11/2017 3:14 PM
Limits on Anomalous WWγ and WWZ Couplings from DØ
Presentation transcript:

CSE 554 Lecture 9: Laplacian Deformation Fall 2016

Review Alignment Methods Source Alignment Registering source to target by rotation and translation Rigid-body transformations Methods Aligning principle directions (PCA) Aligning corresponding points (SVD) Iterative improvement (ICP) Initialize with PCA Alternate between finding correspondences and SVD Input Target After PCA After ICP

Non-rigid Registration Rigid alignment cannot account for shape variance Non-rigid deformation is needed for improved fitting Source Target Rigid alignment After non-rigid deformation

Non-rigid Registration A minimization problem Minimizing the distance between the deformed source and the target “Fitting term” Minimizing the distortion to the source shape “Distortion term”

Intrinsic vs. Extrinsic Intrinsic methods Deforms points on the source curve/surface App: boundary curve or surface matching Extrinsic methods Deforms all points in the space around the source curve/surface App: image or volume matching

Intrinsic Registration Target Given a source and target shape Plus correspondences between some source points (called handles) and target points Relocate source points such that: The handles move to their corresponding targets (fitting term) The rest of the shape deforms as naturally as possible (distortion term) ICP-style registration Alternate between finding correspondences (e.g., closest neighbors) and deformation Handle

Laplacian-based Deformation An intrinsic method used in graphics/animation Simple and efficient (fitting/distortion terms are quadratic) Preserving local shape features Reference: “Laplacian surface editing”, by Sorkine et al., 2004

Setup Input Output Source with n points: p1,…,pn For notation purpose, assume that the first m points are handles Target location of handles: q1,…,qm Output Deformed locations of source points: p1’,…,pn’ Deformed Source q2 p3=q3 p1=q1 p2 An example with 3 handles, two of which are stationary (red)

Overview Finding deformed locations pi’ that minimize: Ef: fitting term Measures how close are the deformed handles to the target Ed: distortion term Measures how much the source shape is changed

Fitting Term Sum of squared distances to target handle locations q2 p2

Distortion Term Q: How to measure shape locally? A: By “bumpiness” at each vertex Laplacian: vector from the centroid of neighbors to the vertex A linear operator over point locations Recall that in fairing, we minimizes this vector to “smooth out” bumps where Ni are indices of neighboring vertices of pi

Distortion Term Minimizing changes in Laplacians during deformation Over all source points i: Laplacian at pi before deformation

Putting Together Finding deformed locations pi’ that minimize: A quadratic equation in terms of variables (pix’, piy’, piz’) qi, i are constants L[] is a linear operator

Quadratic Minimization A general form of quadratic minimization: There are s variables: x=(x1,…,xs)T Each a1,…, ak is a length-s column vector (linear coefficients) Each b1,…, bk is a scalar (constant coefficients) k should be greater than s (so that the problem is over-constrained)

Quadratic Minimization Re-writing our minimization in the general form In 2D, there are s=2n variables: x = (p1x’,…, pnx’, p1y’,…, pny’ )T In 3D, there are s=3n variables We will next re-write each quadratic term in 2D as (aix-bi)2 Can be extended easily to 3D

Quadratic Minimization The ai and bi in the fitting term There are 2m quadratic terms In the first set of m terms: For i=1,…,m, bi=qix, ai contains all zero, except its (i)th entry is 1. In the second set of m terms: For i=1,…,m, bi+m=qiy, ai+m contains all zero, except its (i+n)th entry is 1

Quadratic Minimization The ai and bi in the fitting term There are 2m quadratic terms Example with 3 vertices and 2 fitting constraints (n=3; m=2): 𝑝 3 𝑝 1 𝑝 2 𝑞 1 𝑞 2

Quadratic Minimization The ai and bi in the distortion term: There are 2n quadratic terms The first set of n terms: For i=1,…,n, ai is all zero except the (i)th entry is 1, the (j)th entries are -1/|Ni| for all jNi, and bi=ix The second set of n terms: For i=1,…,n, ai+n is all zero except the (i+n)th entry is 1, the (j+n)th entries are -1/|Ni| for all jNi, and bi+n=iy

Quadratic Minimization The ai and bi in the distortion term: There are 2n quadratic terms Example with 3 vertices (n=3):

Quadratic Minimization To solve: Re-write in matrix form: where is a k by s matrix is a length-k vector

Quadratic Minimization The minimizer is where the partial derivatives are all zero To solve for x in this equation: Taking matrix inverse (good for small s, but numerically unstable for large s) Using specialized linear system solver (LinearSolve in Mathematica, Eigen/TNT/LAPACK in C)

Summary Compute Laplacians (i) Construct coefficients (ai, bi) Put them into matrices (A,B) Solve (x)

Results Deformed A small deformation

Results Deformed A larger deformation

Results Deformed Stretching

Results Deformed Shrinking

Results Deformed Rotation

Discussion Limitations Local features don’t rotate or scale with the model Reason: Laplacian is not invariant under rotation or scale Two bumps that differ by rotation or scale result in non-zero distortion

A Better Distortion Term Not penalizing rotation and scaling of local features Estimating how the local neighborhood is transformed Transforming the original Laplacian vectors before comparing to the deformed Laplacians

Catch 22 Q: How do we find Ti before we know the deformed shape? A: Represent Ti as a function of the unknown variables A linear function of pi’, just like L We will focus in the derivations of the 2D case 3D results will be briefly presented at the end

Transformation Matrices (2D) Homogeneous coordinates A 2D point: (x,y,1) A 2D vector: (x,y,0) A 3D point: (x,y,z,1) A 3D vector: (x,y,z,0)

Transformation Matrices (2D) Translation Cartesian coordinates: vector addition Homogeneous coordinates: matrix product

Transformation Matrices (2D) Isotropic scaling Cartesian coordinates: vector scaling Homogeneous coordinates: matrix product

Transformation Matrices (2D) Rotation Cartesian coordinates: matrix product Homogeneous coordinates: matrix product

Transformation Matrices (2D) Summary of elementary similarity transformations To perform a sequence of transformations: multiple the corresponding matrices in order Translation by vector v Scaling by scalar s Rotation by angle 

Similarity Transforms (2D) General similarity transformations The product of any set of similarity matrices can be written this way Any choice of (a, w, tx, ty) can be written as a sequence of rotation, isotropic scaling and translation Note that a and w can’t be both zero

Computing Ti (2D) Suppose we know the deformed locations pi’ Compute Ti as the similarity transform that best fits the neighborhood of pi to that of pi’

Computing Ti (2D) Suppose we know the deformed locations pi’ Compute Ti as the similarity transform that best fits the neighborhood of pi to that of pi’ This is a quadratic minimization problem for entries of Ti E.g., a, w, tx, ty

Computing Ti (2D) The matrix form of the minimization is: where is a 2|Ni|+2 by 4 matrix, and Ni={i1, i2,…} are indices of neighboring vertices of pi

Computing Ti (2D) By quadratic minimization: Linear expressions of variables (pix’ , piy’)

Distortion Term (2D) Two parts of each distortion term: Transformed Laplacian: Laplacian of the deformed locations: where where is a 2 by 2|Ni|+2 matrix

Distortion Term (2D) Putting together: They form 2n quadratic terms (aix-bi)2 for x = (p1x’,…, pnx’, p1y’,…, pny’ )T All bi are zero Each ai can be extracted from H where and are its rows

Results (2D) Old distortion term New distortion term

Results (2D) Old distortion term New distortion term

Results (2D) Old distortion term New distortion term

Results (2D) Old distortion term New distortion term

Registration Use nearest neighbors as corresponding target locations Assuming the source is already close to the target Iterative closest point (ICP) 1. For each point on the source pi, treat it as a handle, and assign its closest point on the target as its target location qi. 2. Compute Laplacian-based deformation. 3. Repeat step (1) until a termination criteria is met.

Result After rigid alignment 1 iteration of Laplacian 7 iterations of Laplacian Overlaying all curves

Result Weighting the distortion term large w medium w small w

Similarity Transforms (3D) Elementary transformation matrices To perform a sequence of transformations: take the product of these matrices Translation by vector v Scaling by scalar s Rotation by angle  around X axis

Similarity Transforms (3D) General similarity transformations in 3D Approximates the product of a set of elementary matrices Up to a small rotation angle May introduce skewing for large rotations

Computing Ti (3D) Assuming known deformation, by quadratic minimization: Linear expressions of the deformed points pi’ C is a 3|Ni|+3 by 7 matrix where

Distortion Term (3D) Constructing transformed Laplacian: where where