Docsity

Scared Data Interpolation: Reconstructing Signals from Non-uniform Samples - Prof. Leona M, Study notes of Computer Science

Partial preview of the text

Download Scared Data Interpolation: Reconstructing Signals from Non-uniform Samples - Prof. Leona M and more Study notes Computer Science in PDF only on Docsity!

Sca$ered Data Interpola0on

Problem set #4 will be posted tonight

http://www.userfriendly.org/

Problem Statement

• When we previously explored reconstruc;ng a signal

from a sparse set of samples, we assumed that those

samples were uniform (a.k.a. periodic).

• Today we consider methods for construc;ng images

given nonuniform or sca2ered samples

Two sampled versions of the original Mandrill image. Both retain 1/16th^ of the original’s pixels.

A C

Con0nuous Interplola0on

• Triangula;ons are a natural choice for reconstruc;ons

• Signal values are treated as vertex features that are

interpolated within the triangle’s interior

• Piecewise planar reconstruc;on

• Intersec;on of signal and geometry processing

• However, not all triangula;ons are reasonable

– No overlap: Each domain point falls within a single triangle

– Locality: triangles should somehow be limited to nearby

points

Candidate Triangula0ons

• Delaunay Triangula;ons (DT)

– A triangula;on is a list of

(D+1)‐tuples of ver;ces, where

D is the dimension of the signal

– For each non‐degenerate triangle

there exists a unique

D‐dimensional circumsphere

passing through each of its ver;ces

– The triangula;on is Delaunay iff no

triangle in the list has any other

vertex with its circumsphere

A 2-dimensional Delaunay triangulation showing each triangle’s circumsphere

Delaunay‐Voroni Duals

• Previously we discussed the no;on of a Voroni cells

for describing the nearest representa;ve point over

an en;re domain (vector quan;za;on)

• DT and Voroni Cells are in;mately related

• Edges of a DT are

bisected by VC

boundaries

• They are “dual graphs”

Ts Vs,

adjacent T edges  Es

Delaunay Algorithms

• Incremental Flipping Approach

– Starts with an ini;al triangula;on the whole domain

– Insert ver;ces, one at a ;me, and split the triangle that the

vertex falls into

– Then flip triangula;ons un;l all

circumsphere proper;es are sa;sfied

– “Usually” requires only local changes

One More DT Algorithm

• One of the most robust methods for finding a DT is to find the

convex hull of a D+1 paraboloid using a liiing approach, and

then projec;ng its image back to D‐dimensions.

• Carefully consider whether to implement your own DT

algorithm. They are fraught with subtle numerical issues and

special cases. First consider using a robust DT package (e.g.

qhull)

• S;ll interested, take Comp 651 in the Spring

Other Triangula0ons

• DT is degenerate in the uniform case

• DT does not always give sa;sfying results

– Triangula;on is independent of signal being interpolated

– In areas of rapid signal varia;on the choice of triangula;on

can have a large impact, par;cularly if the change has

orienta;on

# # #

# # #

# # #

# # #

# # #

# # #

# # #

# # #

# # #

# # #

Basis Func0on Approaches

• For uniformly sampled data our approach to reconstruc;on

was to place a con;nuous kernel (basis) func;on at each

sample whose sum is the reconstruc;on

• Can we capture the essence of this idea and apply it to non‐

uniformly sampled data.

• What class of kernels should

be used?

• Recall the property of a Kernel

func;on that made it

interpolate rather than

approximate the signal?

Approxima0ng Kernels

• Difficult to design well‐behaved func;ons with unit

responses at each sample, but roots at all others

• Prefer a regular kernel (same basic form at each

sample), with rela;vely few parameters to op;mize

over

• Final func;ons inherit the con;nuity of their kernels

If Φ(x,y) is CN, then, in general, f(x,y) = w 1 Φ 1 (x,y) + w 2 Φ 2 (x,y) + … + wnΦn(x,y)

will also be CN (recall continuity is a function of the number of derivatives)

Where Φi(x,y), are all the same function translated to the sample position and

scaled by the weighting factor wi

Approach

• Form of ϕ

i

• Given f(x,y,σ) = w

1

1

(x,y) + w

2

2

(x,y) + … + w

n

n

(x,y)

• Choose a fixed σ and solve for w

i

’s

• Leads to a linear system

r

u , v

= (x - u)

- (y - v)

u , v , σ

( x , y ) = e

ru^2 , v σ

or φ

u , v , σ

( x , y ) = 0.5(cos(

rxy π σ

Linear System

• N equa;ons, N unknowns

• Matrix of constant values

(each kernel func;on evaluated at the posi;on of each

sample)

• Choose the global constant σ so kernels overlap at worst case

sample spacing (par;cularly important for kernels with finite

support)

11/29/08 Comp 665 – Sca2ered Data Interpola;on 17 € z 1 z 2  zn − 1 zn

φ u

1 , v 1 ,^ σ^

( u 1 , v 1 ) φ u

2 , v 2 ,^ σ^

( u 1 , v 1 )  φ u

n − 1 , vn − 1 ,^ σ^

( u 1 , v 1 ) φ u

n , vn ,^ σ^ ( u 1 , v 1 )

φ u

1 , v 1 ,^ σ^

( u 2 , v 2 ) φ u

2 , v 2 ,^ σ^

( u 2 , v 2 ) φ u

n − 1 , vn − 1 ,^ σ^

( u 2 , v 2 ) φ u

n , vn ,^ σ^ ( u 2 , v 2 )   

φ u

1 , v 1 ,^ σ^

( un − 1 , vn − 1 ) φ u

2 , v 2 ,^ σ^

( un − 1 , vn − 1 ) φ u

n − 1 , vn − 1 ,^ σ^

( un − 1 , vn − 1 ) φ u

n , vn ,^ σ^ ( un − 1 , vn − 1 )

φ u

1 , v 1 ,^ σ^

( un , vn ) φ u

2 , v 2 ,^ σ^

( un , vn )  φ u

n − 1 , vn − 1 ,^ σ^

( un , vn ) φ u

n , vn ,^ σ^ ( un , vn )

w 1 w 2  wn − 1 wn