EE 396: Lecture 2 Ganesh Sundaramoorthi Feb. 12, 2011

Last time we constructed, through the Bayesian paradigm and MAP estimation, the following energy to be minimized for the problem of image denoising: Z Z 2 (1) E(u) = − log p(u|I) = (I(x) − u(x)) dx + α |∇u(x)|2 dx, Ω



where I : Ω → R is the observed or measured image, and α > 0. The energy E is a functional that is defined on the class of functions U, which are to represent the class of denoised (true) images, and maps to the real numbers, i.e., E : U → R, we call such a function that acts on functions, a functional. We are going to learn how to minimize such functionals. As we shall see minimizing such functionals is analogous to the case of minimizing functions of the form f : Rn → R that you’ve learned to minimize in calculus.

0.1 0.1.1

Variational Calculus A Class of Functionals

We are going to consider a general class of functionals to minimize; the energy (1) falls into this class. We consider the class of functionals, E : U → R, defined by Z E(u) = F (u(x), ∇u(x), x) dx (2) Ω

where F : R × R2 × R2 → R. Note that E(u) = E(u) when we choose F to be F (w, y, z) = (I(z) − w)2 + α|y|2 . 0.1.2

(3)

Assumptions on the Class of Functions, U

For simplicity in the calcuations that we are going to do, we will assume additional conditions for the class U, in particular, Z U = {u ∈ C 2 (Ω, R) :

|∇u(x)|2 dx < ∞}.

(4)



Above u ∈ C 2 (Ω, R) means that all the second partial deriatives, i.e., ux1 x1 (x), ux1 x2 (x), ux2 x1 (x), ux2 x2 (x)

(5)

exist and are continuous for every x ∈ Ω. Again, it is not necessary to have the C 2 condition, but it will make our computations easier. 1

In addition, we must assume some conditions about the class U on the boundary of Ω, denoted ∂Ω, and typically there are two types of conditions that are employed in these types of problems. The first is called Dirichlet condition, u(x) = g(x), for x ∈ ∂Ω, (6) where g : ∂Ω → R is pre-specified. The second is called the Neumann condition, ∂u (x) = g(x) for x ∈ ∂Ω, ∂n

(7)

where the derivative above is the directional derivative in the direction of the normal of the boundary. In many cases, we choose g = 0. For simplicity in this lecture we assume ∂u (x) = 0 for x ∈ ∂Ω. ∂n Therefore, the class of functions we consider is Z ∂u U = {u ∈ C 2 (Ω, R) : |∇u(x)|2 dx < ∞, (x) = 0 for x ∈ ∂Ω}. ∂n Ω 0.1.3

(8)

(9)

Critical Points of Functionals

In the case of functions of the form f : Rn → R, we locate maxima/minima by computing the gradient of f (provided that f is smooth) and solve ∇f (x) = 0 for x. These points are known as critical points. The condition that ∇f (x) = 0 is equivalent to the condition d = 0, ∀v ∈ Rn , (10) f (x + tv) dt t=0 that is, the directional derivative in all directions is zero (provided f is smooth). Above the v’s above are known are perturbations. The case of functionals E is analogous. We first calculate the permissible perturbations, which we denote V, of the space U, that is, we ask for what properties of v is such that for small t, u + tv ∈ U for all u ∈ U. As you may verify, the condition is simply v ∈ U. Note that it is not always the case that the permissible perturbations of the function space is the function space itself. For example, if we replaced boundary condition above with ∂u/∂n = g for g 6= 0 the permissible perturbations would differ from the function space. We are ready to define critical points for functionals : Definition 1. Let E : U → R be a functional and V be the space of permissible perturbations of U. A function u ∈ U is a critical point of E if d E(u + tv) = 0, ∀v ∈ V. (11) dt t=0 We denote the left hand side as dE(u) · v, the directional (“Gˆateaux”) derivative of E at the function u in the direction v.

2

0.1.4

Euler-Lagrange Equation

Let us now compute the critical points of E defined in (2). To do so, we compute the Gˆataux derivative of E : Z d d F (u(x) + tv(x), ∇u(x) + t∇v(x), x) dx . (12) dE(u) · v = E(u + tv) = dt dt Ω t=0 t=0 Now we want to bring the derivative inside the integral, and this can only be done in some cases. We assume that it can be done; for those who are interested, the conditions need on F to exchange the derivative and integral are derived using the Lebesgue Dominated Convergence Theorem, which we do not discuss here 1 . Therefore, Z d dE(u) · v = F (u(x) + tv(x), ∇u(x) + t∇v(x), x) dx (13) Ω dt t=0 Z = Fw (u(x) + tv(x), ∇u(x) + t∇v(x), x)v(x)+ (14) Ω

Fy (u(x) + tv(x), ∇u(x) + t∇v(x), x) · ∇v(x)|t=0 dx Z = Fw (u(x), ∇u(x), x)v(x) + Fy (u(x), ∇u(x), x) · ∇v(x) dx.

(15) (16)



Recall now the multivariable version of the integration by parts formula (see [2] for more details) 2 : Z Z Z U (x) · ∇v(x) dx + div (U (x))v(x) dx = U (x) · N (x)v(x) dS(x) Ω



(17)

∂Ω

where N denotes the outward normal to Ω, U : Rn → Rn , v : Rn → R, dS(x) denotes the surface area element in ∂Ω, and n X ∂f (x). (18) div f (x) := ∂xi i=1

Applying integration by parts, we find Z dE(u) · v = Fw (u(x), ∇u(x), x)v(x) − div (Fy (u(x), ∇u(x), x))v(x) dx ZΩ + Fy (u(x), ∇u(x), x) · N (x)v(x) dS(x).

(19) (20)

∂Ω

Now if we only consider v ∈ V such that v(x) = 0 for x ∈ ∂Ω, then the boundary term is zero, and Z dE(u) · v = [Fw (u(x), ∇u(x), x) − div (Fy (u(x), ∇u(x), x))] v(x) dx.

(21)



Now if we want to solve for critical points of the functional E, we must solve for the u ∈ U such that dE(u) · v = 0 for all v ∈ V and satifying v(x) = 0 for x ∈ ∂Ω. We use the following theorem: 1 2

The condition is that the partials R of F are bounded by aR function that is absolutely integrable. The formula is equivalent to Ω div (U (x)v(x)) dx = ∂Ω U (x) · N (x)v(x) dS(x), which is simply the Divergence Theorem.

3

Theorem 1. Let f ∈ C 2 (Ω, R) and suppose Z f (x)v(x) dx = 0

(22)



for all v ∈ C 2 (Ω, R) such that v(x) = 0 and ∂v/∂n(x) = 0 for x ∈ ∂Ω. Then f (x) = 0 for all x ∈ Ω. We don’t prove this theorem. For those interested, the idea is to choose v to be a bump function that peaks and is narrowly concentrated at a point x0 ∈ int(Ω) and dies down to zero at ∂Ω. For this choice of v, using (22), we find that f (x0 ) = 0. But then you can choose v to peak at another point x1 , and then find f (x1 ) = 0, and so on. This gives f (x) = 0 for all x ∈ Ω. Applying the previous theorem, we find that if dE(u) · v = 0 for all v ∈ C 2 (Ω, R) such that v(x) = 0 and ∂v/∂n(x) = 0 for x ∈ ∂Ω, then u ∈ U must satisfy Fw (u(x), ∇u(x), x) − div (Fy (u(x), ∇u(x), x)) = 0.

(23)

The equation above is called the Euler-Lagrange Equation for E. Therefore, we attempt to solve the equations : ( Fw (u(x), ∇u(x), x) − div (Fy (u(x), ∇u(x), x)) = 0 for x ∈ int(Ω) , (24) ∂u for x ∈ ∂Ω ∂n (x) = 0 if a solution(s), exist then we have found a critical point of the functional E. Let us compute the above equations for the special case of (3). Then Fw (w, y, z) = 2(w − I(z)), Fy (w, y, z) = 2αy,

(25)

Fw (u(x), ∇u(x), x) = 2(u(x) − I(x)), Fy (u(x), ∇u(x), x) = 2α∇u(x),

(26)

div (Fy (u(x), ∇u(x), x)) = div (2α∇u(x)) = 2α∆u(x),

(27)

and then and finally where ∆u(x) =

n X ∂2u i=1

∂x2i

(x)

is the Laplacian of u. Let us now write down the Euler-Lagrange Equations : ( α∆u(x) = u(x) − I(x) x ∈ int(Ω) . ∂u x ∈ ∂Ω ∂n (x) = 0

(28)

(29)

In the subsequent lecture, we discuss whether the solution of this equation exists and if so, numerical methods to solve the equation. Indeed, we will find that there is a solution. If we know a solution exists, we only know that the solution is a critical point of E. We would like to know whether that critical point is a global minimizer, i.e., whether the u that solves the Euler-Lagrange equation is the lowest value of E. In general, this is a very difficult question, but in the next section, we introduce conditions on F that will guarantee that the solution of the Euler-Lagrange equation is a global minimum. Let us recall for clarity the definitions of global minimum, and local minima : Definition 2.

• A function u0 ∈ U is a global minimum of E if for all u ∈ U, we have E(u0 ) ≤ E(u).

• A function u0 ∈ U is a local minimum of E if there exists ε > 0 such that for all u ∈ U satisfying ku − u0 k < ε, E(u0 ) ≤ E(u). Note that k · k denotes a norm chosen on U, and the definition of local minimum depends on this choice of norm. For more details on the Euler-Lagrange equation and variational calculus see [3]. 4

References [1] Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004. [2] Lawrence C. Evans. Partial Differential Equations, volume 19 of Graduate Studies in Mathematics. American Mathematical Society, 1997. [3] John L. Troutman. Variational Calculus and Optimal Control: Optimization with Elementary Convexity. Springer, 1996.

5

EE 396: Lecture 2

Feb 12, 2011 - where I : Ω → R is the observed or measured image, and α > 0. The energy E is a functional that is defined on the class of functions U, which ...

108KB Sizes 2 Downloads 213 Views

Recommend Documents

EE 396: Lecture 10-11
From your physics class, we know that the speed of the curve squared divided by the radius of curvature is the normal component of acceleration : cpp(p) · N(p) = |cp(p)|2. R(p). = |cp(p)|2κ(p). (20) where κ(p) is one over the radius of curvature;

EE 396: Lecture 3 - UCLA Vision Lab
Feb 15, 2011 - (which we will see again in more detail when we study image registration, see [2]). • The irradiance R, that is, the light incident on the surface is ...

EE 396: Lecture 4
where Id : U→U is the identity map, and so if u1,u2 ∈ U, then .... Recall from signal processing, that if we have a linear system that is also shift-invariant (some-.

EE 396: Lecture 5
Feb 22, 2011 - In an inner product space, we automatically get for free the Cauchy-Schwartz .... smoothing with and closeness to the original image I. 3The is a ...

EE 396: Lecture 8
Mar 8, 2011 - many fields including electrical engineering and financial data .... used symmetry of w, Fubini's Theorem to interchange order of integration, and ...

EE 396: Lecture 14-15
Calculating the posterior probability, p({Ri,ui}N i=1|I) using Bayes' Rule, and then calculating the MAP estimate is equivalent to minimizing the energy. E({Ri,ui}N.

EE 396: Lecture 9
Mar 12, 2011 - p(ui) (stochastic components of ui, αi and ηi, are independent from each other ) ... we could minimize in u, and a MAP estimate for u, which would.

EE 396: Lecture 13
Mar 29, 2011 - We shall now derive an algorithm whereby we can compute dS(x) for .... Lagrange equations are. ∇Lφ(γ) = ∇φ(γ(s)) − d ds. (φ(γ(s))γs(s)) = 0.

EE 396: Lecture 12
Mar 26, 2011 - Thus, along lines that are parallel to v the function remains ... x ∈ R. We simply follow a line parallel to v starting from (t, x) and follow the line ...

EE 396: Lecture 3 - UCLA Vision Lab
Feb 15, 2011 - The irradiance R, that is, the light incident on the surface is directly recorded ... partials of u1 and u2 exist and are continuous by definition, and ...

EE - Lecture 5b - RoR - multiple projects.pptx
Must use LCM for each pair-wise comparison. • Procedure for ... If i* < MARR: eliminate project and go the next project. •. If i* ≥ MARR: go ... Rules: – No phones.

CPC-EE-320-2.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. CPC-EE-320-2.Missing:

EE 2 unit 4_NoRestriction.pdf
The oxidation pond is an excavation of rectangular ditch of shallow depth. The sewage is $ ... D,ring this period, the sewage is decomposed by rhe action. u€.

Week 2 Lecture Material.pdf
Page 5 of 107. 5. Three-valued logic. Fuzzy connectives defined for such a three-valued logic better can. be stated as follows: Symbol Connective Usage Definition. NOT. OR. AND. IMPLICATION. EQUALITY. Debasis Samanta. CSE. IIT Kharagpur. Page 5 of 10

Econ 712 Lecture 2
where t. G is another Hilbert space. The dimension of this Hilbert space is either 0 or 1. This is so because the Hilbert space t. G must be spanned by the single.

Lecture 2 of 4.pdf
Page 1 of 40. Data Processing with PC-SAS. PubH 6325. J. Michael Oakes, PhD. Associate Professor. Division of Epidemiology. University of Minnesota.

2-TLC-Lecture note.pdf
Page 4 of 8. Page 4 of 8. 2-TLC-Lecture note.pdf. 2-TLC-Lecture note.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying 2-TLC-Lecture note.pdf.

phys570-lecture-2.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. phys570-lecture-2.pdf. phys570-lecture-2.pdf. Open. Extract.

Econ 712 Lecture 2
the natural metric, i.e. notion of length, for a random variable its standard deviation,. ( )2. = E t t x x. (5.1) with covariance as the associated notion of inner product ...

lecture 2: intro to statistics - GitHub
Continuous Variables. - Cumulative probability function. PDF has dimensions of x-1. Expectation value. Moments. Characteristic function generates moments: .... from realized sample, parameters are unknown and described probabilistically. Parameters a

Old Dominion University Lecture 2 - GitHub
Old Dominion University. Department of ... Our Hello World! [user@host ~]$ python .... maxnum = num print("The biggest number is: {}".format(maxnum)) ...

Lecture 2: Measuring Firm Heterogeneity
Oct 23, 2017 - Not a trivial issue: input-output linkages, firm-to-firm trade relationships, etc. • ACF doesn't work in this case. • Recall that mit = m(kit,lit,ωit). • If mit is directly an input factor in gross production function, which var

CSE342/542 -‐ Lecture 2
18. Metric. Formula. Average classifica on accuracy ... Precision: Frac on of retrieved instances that are relevant ... What does the precision score of 1.0 mean?

Ben Tahar 396.pdf
Page 1 of 31. 1. ENTREPRENEURIAL STRESSORS. Yosr Ben Tahar. Groupe Sup de Co Montpellier Business School and. University Montpellier I, Montpellier Research in Management. SUMMARY. The entrepreneurial context is known as stressful, studies use models