two dimensional edge detection from fourier dataasufrg/files/fall2011_mwc_landscape_1.pdf · two...

1
Two Dimensional Edge Detection From Fourier Data Aaron Jesse [email protected] Arizona State University Anne Gelb [email protected] Abstract A common problem in image reconstruction is identifying jump locations from Fourier coeffi- cients. While techniques exist which determine edges directly from Fourier data, they are inher- ently one-dimensional. Here, we adapt the mul- tidimensional polynomail annihilation method [2] for given Fourier data by projecting the Fourier co- efficients onto polynomial space. Further, limited resolution is enhanced without accumulating more Fourier data by using a new subcell resolution en- hancement approach. Polynomial Annihilation Let [f ](x)= f (x + ) f (x - ) define a jump function for piecewise smooth f (x). The polynomial anni- hilation method is given by [2]: L m f (x)= 1 q m (x) x j S x c j (x)f (x j ) [f ](x) where {f (x j )} N j =0 is a finite sampling of f (x), S x is a stencil defined as the nearest m +1 points to x, and q m (x) normalizes the jump function approxi- mation. The annihilation coefficients c j (x) satisfy x j S x c j (x)p i (x j )= p (m) i (x),i =1, ..., m. Hence in smooth regions, where [f](x)=0 can be well approximated by a polynomial, we have L m f (x)= [f ](x)+ O(h(x) m ) where h(x) is the largest distance between neighboring gridpoints. Conversely, if x = ξ is a jump discontinuity, then L m f (ξ )=[f ](ξ )+ O(h(x)). Now, suppose instead of {f (x j )} N j =0 we are given { ˆ g k } K k=0 = {< f, Ψ k > w } K k=0 where {Ψ k } K k=0 is an orthogonal basis with re- spect to the weight function w, so that P K f (x)= K k=0 ˆ g k Ψ k (x). In [3], it was shown that L m P K f (x)= 1 q m (x) K k=m ˆ g k x j S x c j (xk (x) (1) converges to [f ](x). Polynomial Annihilation From Fourier Data Now suppose you are given Fourier coefficients { ˆ f k } N k=-N so that S N f (x)= N k=-N ˆ f k e ikπx . In [4], it was shown that P K (f S N f )‖→ 0 exponentially for the Gegenbauer polynomials Ψ k (x)= C λ k (x), for large enough λ. Hence, define ˜ g k =<S N f (x),C λ k (x) > (1-x 2 ) λ-1/2 and construct L m P K S N f (x)= 1 q m (x) K k=m ˜ g k x j S x c j (x)C λ k (x j ). Notes: 1. To optimize the accuracy of the polynomial annihilation method, the re- construction grid is chosen to be the roots of C λ K (x), thus ensuring a small Lebesgue constant. 2. This will cause the reconstruction grid to have points concentrated near the boundaries, which is not likely to be the natural place for edges to exist. 3. We can improve results by introducing new cells based on different val- ues of λ (see Subcell Resolution Enhancement). 4. These methods are combined with nonlinear postprocessing techniques to preserve jump heights and add additional accuracy and resolution. Two Dimensions In two dimensions, the polynomial annihilation method is written as [2]: L m f (x)= 1 q m (x) x j S x c j (x)f (x j ). S x is now the set of the closest m 2 3 points to x, where m 2 = ( m+2 2 ) and c j (x), j =1, ..., m 2 , are chosen so that x j S x c j (x)p i (x j )= |α| 1 =m p (α) i (x),i =1, ..., m 2 . Here α is a two-dimensional vector of any positive integers, with |α| 1 = α 1 +α 2 . -0.1 -0.05 0 0.05 0.1 -0.1 -0.08 -0.06 -0.04 -0.02 0 0.02 0.04 0.06 0.08 0.1 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -4 -2 0 2 a) Sample Cell f (x) MM (L M f (x)) MM (L M f (x)) Top View Subcell Resolution Enhancement The multi-polynomial subcell resolution enhancement algorithm for P sets of basis polynomials can now be defined as: 1. Define each basis polynomial as ϕ p k (x),p =1, ..., P . Define ¯ x j as the cell value between [x j ,x j +1 ]. 2. For p =1: P , Define an upper grid X p U =(x 1 ,x 2 , ..., x K ) such that ϕ p k (x k )=0. (Gaussian point distribution) 3. Define the lower grid X L = pP X p U . 4. For p =1: P , Compute L M P p k f x j ), x j X p U using (1). Use initial post- processing if desired. Compute L M P p k f x j ), x j X L for each X p U by determining the appropriate upper cell and projecting it onto the corre- sponding lower cell. 5. Use postprocessing (e.g. Minmod) to combine L M P p k f x j ),x j X p L ,p = 1, ..., P . -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 f(x) -1 -0.5 0 0.5 1 -2 -1.5 -1 -0.5 0 0.5 1 a) Original Signal b) Upper Grid -1 -0.5 0 0.5 1 -2 -1.5 -1 -0.5 0 0.5 1 -1 -0.5 0 0.5 1 -2 -1.5 -1 -0.5 0 0.5 1 SCRE Single λ b) Lower Grid c) Resolution of MSRE vs. Standard Open Research While the polynomial annihilation using Fourier to Gegenbauer coeffi- cients method itself has been applied successfully to 2D, the Subcell Res- olution Enhancement algorithm has not. The algorithm itself will re- main unchanged, but cost effective implementation becomes more com- plicated due to the increased cost of projection from the upper grid to the lower grid with larger numbers of gridpoints. Additionally, other basis polynomials are being explored, as perhaps another basis will provide a nice set of points which can be added to the Subcell Resolution Enhance- ment algorithm. References [1] J. Hesthaven, S. Gottlieb, and D. Gottlieb, "Spectral Methods for Time-Dependent Problems" Cambridge University Press, 2007. [2] R. Archibald, A. Gelb, and J. Yoon, "Poly- nomial Fitting For Edge Detection In Ir- regularly Sampled Signals and Images," SIAM J. Appl. Numer. Anal., vol. 43(1), pp. 259-279, 2005. [3] R. Archibald, A. Gelb, R. Saxena, and D. Xiu, "Discontinuity Detection in Multi- variate Space for Stochastic Simulations," J. Comput. Phys. vol. 228, pp. 2676-2689, 2009. [4] D. Gottlieb, C.-W. Shu, A. Solomonoff, and H. Vandeven, "On the Gibbs phe- nomenon I: recovering exponential accu- racy from the Fourier partial sum of a non- periodic analytic function," J. Comp. Appl. Math., vol. 43, 1992.

Upload: others

Post on 28-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Two Dimensional Edge Detection From Fourier Dataasufrg/files/fall2011_MWC_landscape_1.pdf · Two Dimensional Edge Detection From Fourier Data Aaron Jesse aaron.jesse@asu.edu Arizona

Two Dimensional Edge Detection From Fourier DataAaron Jesse [email protected] Arizona State University Anne Gelb [email protected]

AbstractA common problem in image reconstruction isidentifying jump locations from Fourier coeffi-cients. While techniques exist which determineedges directly from Fourier data, they are inher-ently one-dimensional. Here, we adapt the mul-tidimensional polynomail annihilation method [2]for given Fourier data by projecting the Fourier co-efficients onto polynomial space. Further, limitedresolution is enhanced without accumulating moreFourier data by using a new subcell resolution en-hancement approach.

Polynomial AnnihilationLet [f ](x) = f(x+)− f(x−) define a jump functionfor piecewise smooth f(x). The polynomial anni-hilation method is given by [2]:

Lmf(x) =1

qm(x)

xj∈Sx

cj(x)f(xj) → [f ](x)

where {f(xj)}Nj=0 is a finite sampling of f(x), Sx is

a stencil defined as the nearest m + 1 points to x,and qm(x) normalizes the jump function approxi-mation. The annihilation coefficients cj(x) satisfy

xj∈Sx

cj(x)pi(xj) = p(m)i (x), i = 1, ...,m.

Hence in smooth regions, where [f](x)=0 can bewell approximated by a polynomial, we haveLmf(x) = [f ](x) + O(h(x)m) where h(x) is thelargest distance between neighboring gridpoints.Conversely, if x = ξ is a jump discontinuity, thenLmf(ξ) = [f ](ξ) + O(h(x)). Now, suppose insteadof {f(xj)}

Nj=0 we are given

{gk}Kk=0 = {< f,Ψk >w}

Kk=0

where {Ψk}Kk=0 is an orthogonal basis with re-

spect to the weight function w, so that PKf(x) =∑K

k=0 gkΨk(x). In [3], it was shown that

LmPKf(x) =1

qm(x)

K∑

k=m

gk∑

xj∈Sx

cj(x)Ψk(x) (1)

converges to [f ](x).

Polynomial Annihilation From Fourier DataNow suppose you are given Fourier coefficients {fk}

Nk=−N so that

SNf(x) =

N∑

k=−N

fkeikπx.

In [4], it was shown that ‖PK(f−SNf)‖ → 0 exponentially for the Gegenbauerpolynomials Ψk(x) = Cλ

k (x), for large enough λ. Hence, define

gk =< SNf(x), Cλk (x) >(1−x2)λ−1/2

and construct

LmPKSNf(x) =1

qm(x)

K∑

k=m

gk∑

xj∈Sx

cj(x)Cλk (xj).

Notes:

1. To optimize the accuracy of the polynomial annihilation method, the re-construction grid is chosen to be the roots of Cλ

K(x), thus ensuring a smallLebesgue constant.

2. This will cause the reconstruction grid to have points concentrated nearthe boundaries, which is not likely to be the natural place for edges toexist.

3. We can improve results by introducing new cells based on different val-ues of λ (see Subcell Resolution Enhancement).

4. These methods are combined with nonlinear postprocessing techniquesto preserve jump heights and add additional accuracy and resolution.

Two DimensionsIn two dimensions, the polynomial annihilation method is written as [2]:

Lmf(x) =1

qm(x)

xj∈Sx

cj(x)f(xj).

Sx is now the set of the closest m2−3 points to x, where m2 =(

m+22

)

and cj(x),j = 1, ...,m2, are chosen so that

xj∈Sx

cj(x)pi(xj) =∑

|α|1=m

p(α)i (x), i = 1, ...,m2.

Hereα is a two-dimensional vector of any positive integers, with |α|1 = α1+α2.

−0.1 −0.05 0 0.05 0.1−0.1

−0.08

−0.06

−0.04

−0.02

0

0.02

0.04

0.06

0.08

0.1

−1

−0.5

0

0.5

1 −1

−0.5

0

0.5

1

−4

−2

0

2

a) Sample Cell f(x) MM(LM f(x)) MM(LMf(x)) Top View

Subcell Resolution EnhancementThe multi-polynomial subcell resolution enhancement algorithm for P sets ofbasis polynomials can now be defined as:

1. Define each basis polynomial as ϕpk(x), p = 1, ..., P .

Define xj as the cell value between [xj , xj+1].

2. For p = 1 : P , Define an upper grid XpU = (x1, x2, ..., xK) such that

ϕpk(xk) = 0. (Gaussian point distribution)

3. Define the lower grid XL =⋃

p∈P XpU .

4. For p = 1 : P , Compute LMPpk f(xj), xj ∈ X

pU using (1). Use initial post-

processing if desired. Compute LMPpk f(xj), xj ∈ XL for each X

pU by

determining the appropriate upper cell and projecting it onto the corre-sponding lower cell.

5. Use postprocessing (e.g. Minmod) to combine LMPpk f(xj), xj ∈ X

pL, p =

1, ..., P .

−1 −0.5 0 0.5 1−1

−0.5

0

0.5

1

f(x)

−1 −0.5 0 0.5 1−2

−1.5

−1

−0.5

0

0.5

1

a) Original Signal b) Upper Grid

−1 −0.5 0 0.5 1−2

−1.5

−1

−0.5

0

0.5

1

−1 −0.5 0 0.5 1−2

−1.5

−1

−0.5

0

0.5

1

SCRESingle λ

b) Lower Grid c) Resolution of MSRE vs. Standard

Open ResearchWhile the polynomial annihilationusing Fourier to Gegenbauer coeffi-cients method itself has been appliedsuccessfully to 2D, the Subcell Res-olution Enhancement algorithm hasnot. The algorithm itself will re-main unchanged, but cost effectiveimplementation becomes more com-plicated due to the increased cost ofprojection from the upper grid to thelower grid with larger numbers ofgridpoints. Additionally, other basispolynomials are being explored, asperhaps another basis will provide anice set of points which can be addedto the Subcell Resolution Enhance-ment algorithm.

References[1] J. Hesthaven, S. Gottlieb, and D. Gottlieb,

"Spectral Methods for Time-DependentProblems" Cambridge University Press,2007.

[2] R. Archibald, A. Gelb, and J. Yoon, "Poly-nomial Fitting For Edge Detection In Ir-regularly Sampled Signals and Images,"SIAM J. Appl. Numer. Anal., vol. 43(1), pp.259-279, 2005.

[3] R. Archibald, A. Gelb, R. Saxena, andD. Xiu, "Discontinuity Detection in Multi-variate Space for Stochastic Simulations,"J. Comput. Phys. vol. 228, pp. 2676-2689,2009.

[4] D. Gottlieb, C.-W. Shu, A. Solomonoff,and H. Vandeven, "On the Gibbs phe-nomenon I: recovering exponential accu-racy from the Fourier partial sum of a non-periodic analytic function," J. Comp. Appl.Math., vol. 43, 1992.