Radial Basis Functions for Computer Graphics

Slides:



Advertisements
Similar presentations
An Architecture for Real-Time Vertebrae Drilling Simulation.
Advertisements

Steady-state heat conduction on triangulated planar domain May, 2002
Image Segmentation with Level Sets Group reading
Lecture Notes #11 Curves and Surfaces II
Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
L1 sparse reconstruction of sharp point set surfaces
Medical Image Registration Kumar Rajamani. Registration Spatial transform that maps points from one image to corresponding points in another image.
Active Contours, Level Sets, and Image Segmentation
Lecture 10 Curves and Surfaces I
Texture Synthesis on [Arbitrary Manifold] Surfaces Presented by: Sam Z. Glassenberg* * Several slides borrowed from Wei/Levoy presentation.
Multi-Dimensional Data Interpolation Greg Beckham Nawwar.
Interpolation By Radial Basis Function ( RBF ) By: Reihane Khajepiri, Narges Gorji Supervisor: Dr.Rabiei 1.
CSE554Extrinsic DeformationsSlide 1 CSE 554 Lecture 9: Extrinsic Deformations Fall 2012.
CSE554Extrinsic DeformationsSlide 1 CSE 554 Lecture 10: Extrinsic Deformations Fall 2014.
Data mining and statistical learning - lecture 6
Dr. S.M. Malaek Assistant: M. Younesi
EARS1160 – Numerical Methods notes by G. Houseman
CS-378: Game Technology Lecture #5: Curves and Surfaces Prof. Okan Arikan University of Texas, Austin Thanks to James O’Brien, Steve Chenney, Zoran Popovic,
Instructor: Mircea Nicolescu Lecture 13 CS 485 / 685 Computer Vision.
Overview Introduction Variational Interpolation
1cs542g-term Notes  Added required reading to web (numerical disasters)
INFORMATIK Differential Coordinates for Interactive Mesh Editing Yaron Lipman Olga Sorkine Daniel Cohen-Or David Levin Tel-Aviv University Christian Rössl.
Radial Basis Functions Pedro Teodoro. 2 What For Radial Basis Functions (RBFs) allows for interpolate/approximate scattered data in nD.
Scientific Visualization Data Modelling for Scientific Visualization CS 5630 / 6630 August 28, 2007.
Human Computer Interaction 7. Advanced User Interfaces (I) Data Scattering and RBF Course no. ILE5013 National Chiao Tung Univ, Taiwan By: I-Chen Lin,
Visualization 2000 Tutorial Mesh-Based Methods for Multiresolution Representations Instructor: Ken Joy Center for Image Processing and Integrated Computing.
ECS 289L A Survey of Mesh-Based Multiresolution Representations Ken Joy Center for Image Processing and Integrated Computing Computer Science Department.
Motion Blending (Multidimensional Interpolation) Jehee Lee.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
Dual/Primal Mesh Optimization for Polygonized Implicit Surfaces
Surface Reconstruction Using RBF Reporter : Lincong Fang
V. Space Curves Types of curves Explicit Implicit Parametric.
Geometric Modeling using Polygonal Meshes Lecture 1: Introduction Hamid Laga Office: South.
2D/3D Shape Manipulation, 3D Printing Shape Representations Slides from Olga Sorkine February 20, 2013 CS 6501.
1 Surface Applications Fitting Manifold Surfaces To 3D Point Clouds, Cindy Grimm, David Laidlaw and Joseph Crisco. Journal of Biomechanical Engineering,
1 Adding charts anywhere Assume a cow is a sphere Cindy Grimm and John Hughes, “Parameterizing n-holed tori”, Mathematics of Surfaces X, 2003 Cindy Grimm,
C GasparAdvances in Numerical Algorithms, Graz, Fast interpolation techniques and meshless methods Csaba Gáspár Széchenyi István University, Department.
Course 13 Curves and Surfaces. Course 13 Curves and Surface Surface Representation Representation Interpolation Approximation Surface Segmentation.
1 Complex Images k’k’ k”k” k0k0 -k0-k0 branch cut   k 0 pole C1C1 C0C0 from the Sommerfeld identity, the complex exponentials must be a function.
Image Deformation Using Moving Least Squares Scott Schaefer, Travis McPhail, Joe Warren SIGGRAPH 2006 Presented by Nirup Reddy.
Reconstruction of Solid Models from Oriented Point Sets Misha Kazhdan Johns Hopkins University.
Image Morphing ( Computational Photography) Jehee Lee Seoul National University With a lot of slides stolen from Alexei Efros and Seungyong Lee.
Hierarchical Error-Driven Approximation of Implicit Surfaces from Polygonal Meshes Takashi Kanai Yutaka Ohtake Kiwamu Kase University of Tokyo RIKEN, VCAD.
INFORMATIK A Multi-scale Approach to 3D Scattered Data Interpolation with Compactly Supported Basis Functions Yutaka Ohtake Yutaka Ohtake Alexander Belyaev.
Interactive Graphics Lecture 10: Slide 1 Interactive Computer Graphics Lecture 10 Introduction to Surface Construction.
Surface Reconstruction using Radial Basis Functions Michael Kunerth, Philipp Omenitsch and Georg Sperl 1 Institute of Computer Graphics and Algorithms.
CHAPTER 5 CONTOURING. 5.3 CONTOURING Fig 5.7. Relationship between color banding and contouring Contour line (isoline): the same scalar value, or isovalue.
using Radial Basis Function Interpolation
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Application: Multiresolution Curves Jyun-Ming Chen Spring 2001.
Robust Watermarking of 3D Mesh Models. Introduction in this paper, it proposes an algorithm that extracts 2D image from the 3D model and embed watermark.
Kernel Methods Arie Nakhmani. Outline Kernel Smoothers Kernel Density Estimators Kernel Density Classifiers.
CDS 301 Fall, 2008 Domain-Modeling Techniques Chap. 8 November 04, 2008 Jie Zhang Copyright ©
Data Visualization Fall Scattered Point Interpolation Fall 2015Data Visualization2 Sometimes, we have no explicit cell information connecting the.
Professor William H. Press, Department of Computer Science, the University of Texas at Austin1 Opinionated in Statistics by Bill Press Lessons #46 Interpolation.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Interpolation Local Interpolation Methods –IDW – Inverse Distance Weighting –Natural Neighbor –Spline – Radial Basis Functions –Kriging – Geostatistical.
Introduction to Parametric Curve and Surface Modeling.
1 Spherical manifolds for hierarchical surface modeling Cindy Grimm.
Constructing Objects in Computer Graphics
Morphing and Shape Processing
3D Object Representations
Domain-Modeling Techniques
© University of Wisconsin, CS559 Spring 2004
Course 13 Curves and Surfaces
3D Image Segmentation and Multigrid Method
A Volumetric Method for Building Complex Models from Range Images
CSE 554 Lecture 10: Extrinsic Deformations
PPT3: B-spline Curves and Surfaces
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

Radial Basis Functions for Computer Graphics

Contents Introduction to Radial Basis Functions Math How to fit a 3D surface Applications

What can Radial Basis Functions do for me? (A short introduction)

An RBF takes these points:

And gives you this surface:

Scattered Data Interpolation RBF’s are a solution to the Scattered Data Interpolation Problem N point samples, want to interpolate/extrapolate This problem occurs in many areas: Mesh repair Surface reconstruction Range scanning, geographic surveys, medical data Field Visualization (2D and 3D) Image warping, morphing, registration AI

History Lesson Discovered by Duchon in 77 Applications to Graphics: Savchenko, Pasko, Okunev, Kunii – 1995 Basic RBF, complicated topology bits Turk & O’Brien – 1999 ‘variational implicit surfaces’ Interactive modeling, shape transformation Carr et al 1997 – Medical Imaging 2001 – Fast Reconstruction

2D RBF Implicit Curve Parametric Height Field

3D RBF Implicit Surface Scalar Field

Extrapolation (Hole-Filling) Mesh repair Fit surface to vertices of mesh RBF will fill holes if it minimizes curvature !!

Smoothing Smooth out noisy range scan data Repair my rough segmentation

Now a bit of math… (don’t panic)

The Scattered Data Interpolation Problem We wish to reconstruct a function S(x), given N samples (xi, fi), such that S(xi)=fi xi are the centres Reconstructed function is denoted s(x) infinite solutions We have specific constraints: s(x) should be continuous over the entire domain We want a ‘smooth’ surface

The RBF Solution

Terminology: Support Support is the ‘footprint’ of the function Two types of support matter to us: Compact or Finite support: function value is zero outside of a certain interval Non-Compact or Infinite support: not compact (no interval, goes to )

Basic Functions ( ) Can be any function Difficult to define properties of the RBF for an arbitrary basic function Support of function has major implications A non-compactly supported basic function implies a global solution, dependent on all centres! allows extrapolation (hole-filling)

Standard Basic Functions Polyharmonics (Cn continuity) 2D: 3D: Multiquadric: Gaussian: compact support, used in AI

Polyharmonics 2D Biharmonic: 3D Triharmonic: Thin-Plate Spline 3D Biharmonic: C1 continuity, Polynomial is degree 1 Node Restriction: nodes not colinear 3D Triharmonic: C2 continuity, Polynomial is degree 2 Important Bit: Can provide Cn continuity

Guaranteeing Smoothness RBF’s are members of , the Beppo-Levi space of distributions on R3 with square integrable second derivatives has a rotation-invariant semi-norm: Semi-norm is a measure of energy of s(x) Functions with smaller semi-norm are ‘smoother’ Smoothest function is the RBF (Duchon proved this)

What about P(x) ? P(x) ensures minimization of the curvature 3D Biharmonic: P(x) = a + bx + cy + dz Must solve for coefficients a,b,c,d Adds 4 equations and 4 variables to the linear system Additional solution constraints:

Finding an RBF Solution The weights and polynomial coefficients are unknowns We know N values of s(x): We also have 4 side conditions

The Linear System Ax = b

Properties of the Matrix Depends heavily on the basic function Polyharmonics: Diagonal elements are zero – not diagonally dominant Matrix is symmetric and positive semi-definite Ill-conditioned if there are near-coincident centres Compactly-supported basic functions have a sparse matrix Introduce surface artifacts Can be numerically unstable

Analytic Gradients Easy to calculate Continuous depending on basic function Partial derivatives for biharmonic gradient can be calculated in parallel:

Fitting 3D RBF Surfaces (it’s tricky)

Basic Procedure Acquire N surface points Assign them all the value 0 (This will be the iso-value for the surface) Solve the system, polygonize, and render:

Off-Surface Points Why did we get a blank screen? Matrix was Ax = 0 Trivial solution is s(x) = 0 We need to constrain the system Solution: Off-Surface Points Points inside and outside of surface Project new centres along point normals Assign values: <0 inside; >0 outside Projection distance has a large effect on smoothness

Invalid Off-Surface Points Have to make sure that off-surface points stay inside/outside surface! Nearest-Neighbor test

… Point Normals? Easy to get from polygonal meshes Difficult to get from anything else Can guess normal by fitting a plane to local neighborhood of points Need outward-pointing vector to determine orientation Range scanner position, black pixels For ambiguous cases, don’t generate off-surface point

Computational Complexity How long will it take to fit 1,000,000 centres? Forever (more or less) 3.6 TB of memory to hold matrix O(N3) to solve the matrix O(N) to evaluate a point Infeasible for more than a few thousand centres Fast Multipole Methods make it feasible O(N) storage, O(NlogN) fitting and O(1) evaluation Mathematically complex

Centre Reduction Remove redundant centres Greedy algorithm Buddha Statue: 543,652 surface points 80,518 centres 5 x 10-4 accuracy

FastRBF FarFieldTechnology (.com) Commercial implementation Expensive 3D biharmonic fitter with Fast Multipole Methods Adaptive Polygonizer that generates optimized triangles Grid and Point-Set evaluation Expensive They have a free demo limited to 30k centres Use iterative reduction to fit surfaces with more points

Applications (and eye candy)

Cranioplasty (Carr 97)

Molded Cranial Implant

Morphing Turk99 (SIGGRAPH) 4D Interpolation between two surfaces

Morphing With Influence Shapes

Statue of Liberty 3,360,300 data points 402,118 centres 0.1m accuracy

Credits Pictures shamelessly copied from: References: Papers by J.C. Carr and Greg Turk FastRBF.com References:

Fin Any Questions?