modeling textures with total variation minimization and ...lvese/papers/jsc_veseosher.pdf ·...

20
553 0885-7474/03/1200-0553/0 © 2003 Plenum Publishing Corporation Journal of Scientific Computing, Vol. 19, Nos. 1–3, December 2003 (© 2003) Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image Processing Luminita A. Vese 1 and Stanley J. Osher 1 1 Department of Mathematics, University of California, Los Angeles, 520 Portola Plaza, Los Angeles, California 90095-1555. E-mail: {lvese,sjo}@math.ucla.edu Received May 2, 2002; accepted (in revised form) July 1, 2002 This paper is devoted to the modeling of real textured images by functional mini- mization and partial differential equations. Following the ideas of Yves Meyer in a total variation minimization framework of L. Rudin, S. Osher, and E. Fatemi, we decompose a given ( possible textured) image f into a sum of two functions u+v, where u ¥ BV is a function of bounded variation (a cartoon or sketchy approximation of f), while v is a function representing the texture or noise. To model v we use the space of oscillating functions introduced by Yves Meyer, which is in some sense the dual of the BV space. The new algorithm is very simple, making use of differential equations and is easily solved in practice. Finally, we implement the method by finite differences, and we present various numerical results on real textured images, showing the obtained decomposition u+v, but we also show how the method can be used for texture discrimination and texture segmentation. KEY WORDS: Functional minimization; partial differential equations; oscillating functions; functions of bounded variation; finite differences; texture modeling; image analysis. 1. INTRODUCTION In many problems of image analysis, we have an observed image f, representing a real scene. The image f may contain noise (some random pattern of zero mean for instance) and/or texture (some repeated pattern of small scale details). The image processing task is to extract the most meaningful information from f. This is usually formulated as an inverse problem: given f, find another image u, ‘‘close’’ to f, such that u is a cartoon or simplification of f. In general, u is an image formed by homogeneous regions and with sharp boundaries. Most models assume the following relation between f and u: f=u+v, where v is noise or small scale repeated detail (texture), and extract only the u component from f. Usually, the component v is not kept, assuming that this models the noise. In this category, we mention Rudin, Osher, and Fatemi [22], Mumford and Shah [18], Perona and

Upload: others

Post on 27-Jan-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

553

0885-7474/03/1200-0553/0 © 2003 Plenum Publishing Corporation

Journal of Scientific Computing, Vol. 19, Nos. 1–3, December 2003 (© 2003)

Modeling Textures with Total Variation Minimization andOscillating Patterns in Image Processing

Luminita A. Vese1 and Stanley J. Osher1

1 Department of Mathematics, University of California, Los Angeles, 520 Portola Plaza, LosAngeles, California 90095-1555. E-mail: {lvese,sjo}@math.ucla.edu

Received May 2, 2002; accepted (in revised form) July 1, 2002

This paper is devoted to the modeling of real textured images by functional mini-mization and partial differential equations. Following the ideas of Yves Meyer in atotal variation minimization framework of L. Rudin, S. Osher, and E. Fatemi, wedecompose a given (possible textured) image f into a sum of two functions u+v,where u ¥ BV is a function of bounded variation (a cartoon or sketchy approximationof f), while v is a function representing the texture or noise. To model v we use thespace of oscillating functions introduced by Yves Meyer, which is in some sense thedual of the BV space. The new algorithm is very simple, making use of differentialequations and is easily solved in practice. Finally, we implement the method by finitedifferences, and we present various numerical results on real textured images,showing the obtained decomposition u+v, but we also show how the method can beused for texture discrimination and texture segmentation.

KEY WORDS: Functional minimization; partial differential equations; oscillatingfunctions; functions of bounded variation; finite differences; texture modeling; imageanalysis.

1. INTRODUCTION

In many problems of image analysis, we have an observed image f, representing areal scene. The image f may contain noise (some random pattern of zero mean forinstance) and/or texture (some repeated pattern of small scale details). The imageprocessing task is to extract the most meaningful information from f. This isusually formulated as an inverse problem: given f, find another image u, ‘‘close’’ tof, such that u is a cartoon or simplification of f. In general, u is an image formedby homogeneous regions and with sharp boundaries. Most models assume thefollowing relation between f and u: f=u+v, where v is noise or small scalerepeated detail (texture), and extract only the u component from f. Usually, thecomponent v is not kept, assuming that this models the noise. In this category, wemention Rudin, Osher, and Fatemi [22], Mumford and Shah [18], Perona and

Page 2: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Malik [20], Alvarez et al. [2], Chambolle and Lions [10], Aubert and Vese [5],among many others. These models have the ability of computing optimal piecewise-smooth approximations u of f, while noise or small repeated patterns are removedfrom the image.

In some cases, the v component is important, especially if it represents texture.Texture can be defined as a repeated pattern of small scale details. The noise is alsoa pattern of small scale details, but of random, uncorrelated values. Both types ofpatterns (additive noise or texture) can be modeled by oscillatory functions takingboth positive and negative values, and of zero mean [17].

Following the ideas of Yves Meyer [17], we show in this paper how we canextract from f both components u and v, in a simple total variation minimizationframework of Rudin, Osher, and Fatemi [22]. The obtained decomposition canthen be useful for segmentation of textured images and texture discrimination,among other possible applications. The textured component v is completely repre-sented using only two functions (g1, g2). This is much simpler and much more effi-cient than in other techniques for textures, which use a large number of channels torepresent a textured image.

To summarize, we propose in this paper a simple model, which combines theedge preserving model of ROF, with the texture preserving model of Y. Meyer. Thetechnique used is by energy minimization and partial differential equations. Weillustrate the benefits of the new decomposition on various numerical results andapplications to texture discrimination and texture segmentation.

We review next the main two ingredients of the proposed model: the totalvariation minimization of Rudin, Osher, and Fatemi (ROF) [22] for imagedenoising and restoration (see also Rudin and Osher [21]), and the space ofoscillating functions introduced by Yves Meyer [17] to model texture or noise.

Let f: R2Q R be a given image (we assume that the image initially defined on

a rectangle in R2, has been extended by reflection to the entire space). We assumethat f ¥ L2(R2). In real applications, the observed image f is just a noisy version ofa true image u, or (as we will see in this paper), it is a textured image, and u wouldbe a simple sketchy approximation or a cartoon image of f. In the presence ofadditive noise, the relation between u and f can be expressed by the linear model,introducing another function v, and such that

f(x, y)=u(x, y)+v(x, y).

In the Rudin, Osher, and Fatemi restoration model [22], v represents noise orsmall scale repeated details, while u is an image formed by homogeneous regions,and with sharp edges. Given f, both u and v are unknown (if v is noise, we mayknow some statistics of v, such that it is of zero mean and given variance). In [22],the problem of reconstructing u from f is posed as a minimization problem in thespace of functions of bounded variation BV(R2), this space allowing for edges ordiscontinuities along curves. Their model, very efficient for denoising images whilekeeping sharp edges, is

infu ¥ L2

F(u)=F |Nu|+l F |f − u|2 dx dy, (1)

554 Vese and Osher

Page 3: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

where l > 0 is a tuning parameter. The second term in the energy is a fidelity term,while the first term is a regularizing term, to remove noise or small details, whilekeeping important features and sharp edges.

Existence and uniqueness results for the above minimization problem can befound in [1], [10], [25], [3] (see also [4]). This problem has minimizers in thespace BV(R2) of functions of bounded variation, which is defined by [11]:u ¥ BV(R2) iff u ¥ L1(R2) and

supgF

3F u div gF dx dy: gF ¥ C1c (R2; R2), |gF| [ 14 < .. (2)

If we denote by v=f − u or f=u+v, then the above minimization problemcan be written as:

infu ¥ BV

3F(u)=F |Nu|+l ||v||2L2, f=u+v4 . (3)

Formally minimizing F(u) yields the associated Euler–Lagrange equation

u=f+12l

div 1 Nu|Nu|

2

(for a correct form of the equation 0 ¥ “F(u) satisfied by a minimizer u ¥ BV, werefer the reader to [25]).

In practice, to avoid division by zero, the curvature term div( Nu|Nu|) is approxi-

mated by div( Nu`E

2+|Nu|2), and the BV solution is obtained as the limit of smoother

minimizers, as E Q 0, as in [1], [25]. This convention will be always made in thispaper.

Then, the function representing noise or texture in the ROF model isv=f − u=− 1

2l div( Nu|Nu|), but this is not computed explicitly in the ROF model. Only

the component u is kept in the ROF model.Note that the above function v in the ROF model can be formally written

as: v=div gF, where gF=(g1, g2) and g1=− 12l

ux|Nu|, g2=− 1

2luy

|Nu|. We have that

g21(x, y)+g2

2(x, y)= 12l for all (x, y), so that ||`g2

1+g22 ||L.= 1

2l (later we will use thenotation |gF|=`g2

1+g22).

In [17], Yves Meyer proves that the ROF model will remove the texture, if l issmall enough. In order to extract both the u component in BV and the v componentas an oscillating function (texture or noise) from f, Yves Meyer [17] proposes theuse of a space of functions, which is in some sense the dual of the BV space (seealso condition (2)). On the topic of oscillations in non-linear analysis, we wouldalso like to refer the reader to [19].

Y. Meyer introduces the following definition [17]:

Definition 1. Let G denote the Banach space consisting of all generalizedfunctions v(x, y) which can be written as

v(x, y)=“x g1(x, y)+“y g2(x, y), g1, g2 ¥ L.(R2), (4)

Modeling Textures with Total Variation Minimization 555

Page 4: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

induced by the norm ||v||g defined as the lower bound of all L. norms of the func-tions |gF| where gF=(g1, g2), |gF(x, y)|=`g1(x, y)2+g2(x, y)2 and where theinfimum is computed over all decompositions (4) of v.

Y. Meyer also gives the following three results [17]:

Lemma 1. If v ¥ L2(R2), then |> f(x, y) v(x, y) dx dy| [ ||f||BV ||v||g.

Lemma 2. If the norm of f in G does not exceed 12l , then the optimal Rudin,

Osher, and Fatemi decomposition of f is given by u=0, v=f.

Theorem 1. Let f, u, and v be three functions in L2(R2). If ||f||g > 12l , then the

Rudin, Osher, and Fatemi decomposition f=u+v is characterized by the followingtwo conditions:

||v||g=1

2land F u(x, y) v(x, y) dx dy=

12l

||u||BV.

In the above results, we have used the notation ||u||BV :=> |Nu| for the totalvariation of u.

Y. Meyer shows that, if the v component represents texture or noise, thenv ¥ G, and proposes the following new image restoration model:

infu

3E(u)=F |Nu|+l ||v||g, f=u+v4 . (5)

As was justified by Y. Meyer, we shall see that the space G allows for oscillat-ing functions v, and the oscillations are well measured by the norm ||v||g.

In the next section, we show how we can solve a variant of this model in prac-tice, making use only of simple partial differential equations.

Other work for restoration of textured images by total variation minimizationin a wavelet framework is by Malgouyres [15, 16], Candés and Guo [29]. Also,texture modeling by statistical methods was proposed by Zhu, Wu, and Mumford,in [27, 28], and by Casadei, Mitter, and Perona in [7]. In the context of texturesegmentation, we cite only a few related work, such as Koepfler, Lopez, and Morel[12], Sapiro [24], Lee, Mumford, and Yuille [14], Lee [13], Ballester andGonzalez [6], among many other. A recent work for segmentation of texturedimages using segmentation based active contour models in a Gabor transformframework, is proposed by Sandberg, Chan, and Vese [23].

Finally, we would like to mention other work using u+v models, but in differentcontexts. One was proposed by Chambolle and Lions [10], where a given image fwas decomposed into a sum u+v, such that u ¥ BV(W) and v was the smoother partof f, satisfying Nv ¥ BV(W)2. Another related work involving image decompositionwas proposed by Wells et al. [26], in the context of adaptive segmentation and clas-sification using statistical methods: the new data Y=ln(X) (the logarithmic trans-formation of the initial data X), is decomposed into a sum of two other components,one being piecewise-constant (given by the mean intensities for each class) and theother one being an additive bias field, to represent intensity inhomogeneities.

556 Vese and Osher

Page 5: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

2. DESCRIPTION OF THE MODEL

We are motivated by the following approximation to the L. norm of|gF|=`g2

1+g22, for g1, g2 ¥ L.(R2):

||`g21+g2

2 ||L.= limp Q .

||`g21+g2

2 ||Lp.

Then, we propose the following minimization problem, inspired by (5):

infu, g1, g2

3Gp(u, g1, g2)=F |Nu|+l F |f − u − “x g1 − “y g2 |2 dx dy

+m 5F (`g21+g2

2)p dx dy61p4 , (6)

where l, m > 0 are tuning parameters, and p Q ..The first term insures that u ¥ BV(R2), the second term insures that

f % u+div gF, while the third term is a penalty on the norm in G of v=div gF.Clearly, if l Q . and p Q ., this model is formally an approximation of the model(5) originally proposed by Y. Meyer.

Formally minimizing the above energy with respect to u, g1, g2, yields thefollowing Euler–Lagrange equations:

u=f − “x g1 − “y g2+1

2ldiv 1 Nu

|Nu|2 , (7)

m(||`g21+g2

2 ||p)1 − p (`g21+g2

2)p − 2 g1=2l 5 “

“x(u − f )+“

2xxg1+“

2xyg2

6 , (8)

m(||`g21+g2

2 ||p)1 − p (`g21+g2

2)p − 2 g2=2l 5 “

“y(u − f )+“

2xyg1+“

2yyg2

6 . (9)

In our numerical calculations, we have tested the model for different values ofp, with 1 [ p [ 10. The obtained results are very similar. The case p=1 yields fastercalculations per iteration, so we give here the form of the Euler–Lagrange equationsin this case (p=1):

u=f − “x g1 − “y g2+12l

div 1 Nu|Nu|

2 , (10)

mg1

`g21+g2

2

=2l 5 “

“x(u − f )+“

2xxg1+“

2xyg2

6 , (11)

mg2

`g21+g2

2

=2l 5 “

“y(u − f )+“

2xyg1+“

2yyg2

6 . (12)

If the domain is finite, with exterior normal to the boundary denoted by(nx, ny), the associated boundary conditions are:

Modeling Textures with Total Variation Minimization 557

Page 6: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Nu|Nu|

(nx, ny)=0,

(f − u − “x g1 − “y g2) nx=0,

(f − u − “x g1 − “y g2) ny=0.

As we shall see in the section devoted to numerical results, the proposedminimization model (6) allows to extract from a given real textured image f thecomponents u and v, such that u is a sketchy (cartoon) approximation of f, andv=div(g1, g2) represents the texture or the noise. In addition, the minimizerobtained for gF=(g1, g2) allows us to discriminate two textures, by looking at thefunctions |gF|=`g2

1+g22, |g1 | or |g2 |.

2.1. Analytical Remarks

We list here a few simple analytical remarks about the proposed models. Wewill use the following notation: for u ¥ BV, we denote its total variation by:||u||BV :=> |Nu|. We assume that f ¥ L2.

• In the standard Rudin–Osher–Fatemi model [22], the residual is given by:

f − u=−12l

K(u),

where K(u) denotes the curvature operator, defined by K(u)=div( Nu|Nu|).

• In the new model for p \ 1, the residual is given by the same expression:

f − (u+v)=−12l

K(u).

• In the new model with p=1, from equations (10)-(12), it is easy to show thefollowing remarkable relation:

m=|NK(u)|.

• In the new model with p > 1, from Eqs. (7)–(9), we can easily show thefollowing relations:

m 1 `g21+g2

2

||`g21+g2

2 ||p2p − 1

=|NK(u)|,

m ||`g21+g2

2 ||p=F `g21+g2

2 · |NK(u)|.

If gF is of constant magnitude, then the above relation involves the BV normof K(u), or the total variation of K(u). If gF is not of constant magnitude,then > |gF| · |NK(u)| can be viewed as a weighted BV norm of the curvatureK(u).

558 Vese and Osher

Page 7: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

• Lemma 3. If u=0, gF ¥ (Lp)2 is a minimizer of the problem (6), then||f − div gF||g [ 1

2l.

Proof. We will have for any u ¥ BV that:

||u||BV+l ||f − u − div gF||2L2+m || |gF| ||Lp \ l ||f − div gF||2

L2+m || |gF| ||Lp,

or

||u||BV+l ||u||2L2 \ 2l F u(f − div gF) dx dy.

Substituting in the above inequality u by Eu, and taking E Q 0, we obtain:

:F u(f − div gF) dx dy : [ 12l

||u||BV.

The conclusion follows from this last inequality and from the dualitybetween BV and G 5 L2.

• Lemma 4. If u ¥ BV, gF=(0, 0) is a minimizer of the problem (6), then||N(u − f )||Lq [ m

2l, with 1p+

1q=1.

Proof. We will have for any gF ¥ (Lp)2 that:

||u||BV+l ||f − u − div gF||2L2+m || |gF| ||Lp \ ||u||BV+l ||f − u||2

L2,

or

||div gF||2L2+m || |gF| ||Lp \ 2l F (f − u) div gF dx dy=2l F N(u − f ) · gF.

Substituting in the above inequality gF by EgF, and taking E Q 0, we obtain:

:F N(u − f ) · gF dx dy : [ m

2l|| |gF| ||Lp.

The conclusion follows from this last inequality and from the dualitybetween Lp and Lq.

• Lemma 5. u=0 and gF=(0, 0) is a minimizer of the problem (6) iff||f||g [ 1

2l and ||Nf||Lq [ m2l.

Proof. The direct implication is a consequence of the two previousresults. The converse implication can be also verified by the previous tech-niques.

Remark. Lemma 3 could also be justified by applying Lemma 2 proved byY. Meyer to f=f − div gF, for a fixed gF.

Remark. Finally, we can apply Theorem 1 to our minimization problem (6)for a fixed gF. Then, this reduces to the classical Rudin–Osher–Fatemi minimization

Modeling Textures with Total Variation Minimization 559

Page 8: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

problem for a new data f − div gF, and we have the following property: for fixed gF, if||f − div gF||g > 1

2l and u is a minimizer, then ||f − u − div gF||g= 12l and

F u(x, y) f(x, y) dx dy − F u2(x, y) dx dy − F u(x, y) div gF(x, y) dx dy=1

2l||u||BV.

Remark. We have verified some of these simple theoretical results by exper-imental calculations on simple images.

3. THE NUMERICAL DISCRETIZATION OF THE MODEL

To discretize the Eqs. (7)–(9), we use a semi-implicit finite differences schemeand an iterative algorithm, based on a fixed point iteration. The equation in u isdiscretized following the schemes from [22] and [5]. Similar schemes are then usedfor the equations in g1 and g2. The initial guess that we use for the iterative algo-rithm is as follows: u0=f, g0

1=− 12l

fx|Nf|, g0

2=− 12l

fy|Nf|.

The details of our numerical algorithm are as follows. We use the classicalnotations ui, j % u(ih, jh), fi, j % f(ih, jh), g1, i, j % g1(ih, jh) and g2, i, j % g2(ih, jh),where h > 0 is the step space and (ih, jh) denotes a discrete point, for 0 [ i, j [ M.To simplify the presentation, let us introduce the notation H(g1, g2)=(||`g2

1+g22 ||p)1 − p (`g2

1+g22)p − 2.

The discrete forms of our equations are:

ui, j=fi, j −g1, i+1, j − g1, i − 1, j

2h−

g2, i, j+1 − g2, i, j − 1

2h

+1

2lh2 r ui+1, j − ui, j

=1ui+1, j − ui, j

h22

+1ui, j+1 − ui, j − 1

2h22

−ui, j − ui − 1, j

=1ui, j − ui − 1, j

h22

+1ui − 1, j+1 − ui − 1, j − 1

2h22s

+1

2lh2 r ui, j+1 − ui, j

=1ui+1, j − ui − 1, j

2h22

+1ui, j+1 − ui, j

h22

−ui, j − ui, j − 1

=1ui+1, j − 1 − ui − 1, j − 1

2h22

+1ui, j − ui, j − 1

h22s ,

560 Vese and Osher

Page 9: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

mH(g1, i, j, g2, i, j) g1, i, j=2l 5ui+1, j − ui − 1, j

2h−

fi+1, j − fi − 1, j

2h+

g1, i+1, j − 2g1, i, j+g1, i − 1, j

h2

+1

2h2 (2g2, i, j+g2, i − 1, j − 1+g2, i+1, j+1 − g2, i, j − 1 − g2, i − 1, j − g2, i+1, j − g2, i, j+1)6 ,

mH(g1, i, j, g2, i, j) g2, i, j=2l 5ui, j+1 − ui, j − 1

2h−

fi, j+1 − fi, j − 1

2h+

g2, i, j+1 − 2g2, i, j+g2, i, j − 1

h2

+1

2h2 (2g1, i, j+g1, i − 1, j − 1+g1, i+1, j+1 − g1, i, j − 1 − g1, i − 1, j − g1, i+1, j − g1, i, j+1)6 .

We introduce the following linearized equations:

un+1i, j =fi, j −

gn1, i+1, j − gn

1, i − 1, j

2h−

gn2, i, j+1 − gn

2, i, j − 1

2h

+1

2lh2 r uni+1, j − un+1

i, j

=1uni+1, j − un

i, j

h22

+1uni, j+1 − un

i, j − 1

2h22

−un+1

i, j − uni − 1, j

=1uni, j − un

i − 1, j

h22

+1uni − 1, j+1 − un

i − 1, j − 1

2h22s

+1

2lh2 r uni, j+1 − un+1

i, j

=1uni+1, j − un

i − 1, j

2h22

+1uni, j+1 − un

i, j

h22

−un+1

i, j − uni, j − 1

=1uni+1, j − 1 − un

i − 1, j − 1

2h22

+1uni, j − un

i, j − 1

h22s ,

mH(gn1, i, j, gn

2, i, j) gn+11, i, j=2l 5un

i+1, j − uni − 1, j

2h−

fi+1, j − fi − 1, j

2h+

gn1, i+1, j − 2gn+1

1, i, j+gn1, i − 1, j

h2

+1

2h2 (2gn2, i, j+gn

2, i − 1, j − 1+gn2, i+1, j+1 − gn

2, i, j − 1 − gn2, i − 1, j − gn

2, i+1, j − gn2, i, j+1)6 ,

mH(gn1, i, j, gn

2, i, j) gn+12, i, j=2l 5un

i, j+1 − uni, j − 1

2h−

fi, j+1 − fi, j − 1

2h+

gn2, i, j+1 − 2gn+1

2, i, j+gn2, i, j − 1

h2

+1

2h2 (2gn1, i, j+gn

1, i − 1, j − 1+gn1, i+1, j+1 − gn

1, i, j − 1 − gn1, i − 1, j − gn

1, i+1, j − gn1, i, j+1)6 .

Modeling Textures with Total Variation Minimization 561

Page 10: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Introducing the notations:

c1=1

=1uni+1, j − un

i, j

h22

+1uni, j+1 − un

i, j − 1

2h22

,

c2=1

=1uni, j − un

i − 1, j

h22

+1uni − 1, j+1 − un

i − 1, j − 1

2h22

,

c3=1

=1uni+1, j − un

i − 1, j

2h22

+1uni, j+1 − un

i, j

h22

,

c4=1

=1uni+1, j − 1 − un

i − 1, j − 1

2h22

+1uni, j − un

i, j − 1

h22

,

and solving in each equation for un+1i, j , gn+1

1, i, j and for gn+12, i, j respectively, we obtain:

un+1i, j =R 1

1+1

2lh2 (c1+c2+c3+c4)S 5fi, j −

gn1, i+1, j − gn

1, i − 1, j

2h−

gn2, i, j+1 − gn

2, i, j − 1

2h

+1

2lh2 (c1uni+1, j+c2un

i − 1, j+c3uni, j+1+c4un

i, j − 1)6 ,

gn+11, i, j=R 2l

mH(gn1, i, j, gn

2, i, j)+4l

h2

S 5uni+1, j − un

i − 1, j

2h−

fi+1, j − fi − 1, j

2h+

gn1, i+1, j+gn

1, i − 1, j

h2

+1

2h2 (2gn2, i, j+gn

2, i − 1, j − 1+gn2, i+1, j+1 − gn

2, i, j − 1 − gn2, i − 1, j − gn

2, i+1, j − gn2, i, j+1)6 ,

gn+12, i, j=R 2l

mH(gn1, i, j, gn

2, i, j)+4l

h2

S 5uni, j+1 − un

i, j − 1

2h−

fi, j+1 − fi, j − 1

2h+

gn2, i, j+1+gn

2, i, j − 1

h2

+1

2h2 (2gn1, i, j+gn

1, i − 1, j − 1+gn1, i+1, j+1 − gn

1, i, j − 1 − gn1, i − 1, j − gn

1, i+1, j − gn1, i, j+1)6 .

As it can be noticed from the above formula, we have used the followingapproximation of the mixed derivatives:

“2xyg1(i, j) %

12h2 (2g1, i, j+g1, i − 1, j − 1+g1, i+1, j+1 − g1, i, j − 1 − g1, i − 1, j − g1, i+1, j − g1, i, j+1),

562 Vese and Osher

Page 11: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

and similarly for g2. We have also tested another approximation to the mixed deri-vatives, which is:

“2xyg1(i, j) %

14h2 (g1, i+1, j+1+g1, i − 1, j − 1 − g1, i+1, j − 1 − g1, i − 1, j+1),

which also gave good results.In practice, we set h=1 and in our computer algorithm, we employ another

fixed-point method: instead of uni, j, gn

1, i, j and gn2, i, j, we always use the most recent

value computed for each function at that point. At the boundary, we extend ui, j byreflection outside the domain, and a simple boundary condition for gF would beDirichlet boundary condition, which appears to work well in practice. We performabout 100 iterations for each experimental result. Other implicit or explicit schemescould have been constructed and used.

4. NUMERICAL RESULTS

In this section, we show various numerical results using the proposed model. Inall results, we take the space step h=1, and we perform 100 iterations in mostcases. Since in practice we have not noticed differences between the cases p=1 andp > 1, we show the numerical results obtained with p=1.

In Fig. 1 we consider a real textured image without noise for the initial data f.In Fig. 2 left we show the result u obtained with the ROF model, and in Fig. 2 rightwe show the residual f − u (plus a constant for illustration purposes). We see thattexture (in form of geometry) is still present in the residual f − u.

Next, in Fig. 3 we show the results obtained with the new model, for the sameparameter l. Note from Fig. 3 that u+v represents very well the initial texturedimage f, and that in the residual f − u − v there is much less geometry and texturethan by the ROF model. As expected, the image u in Fig. 3 is a sketchy approxi-mation of f, while v is an oscillatory function (again, we have added a constant tothe result v, for illustration purposes).

Fig. 1. An initial textured image.

Modeling Textures with Total Variation Minimization 563

Page 12: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 2. Result using the ROF model with l=0.1.

Fig. 3. Result using the new model with l=0.1, m=0.1.

Fig. 4. An initial fingerprint image.

564 Vese and Osher

Page 13: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 5. Result using the ROF model with l=0.1.

Fig. 6. Result using the new model with l=0.1, m=0.1.

Fig. 7. Original fingerprint image (left) and a noisy version f (right).

Modeling Textures with Total Variation Minimization 565

Page 14: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 8. Result using the ROF model with l=0.03.

Similar results and comparisons are presented in Figs. 4–6, for anothertextured image without noise, representing a fingerprint.

Then, we show comparisons and numerical results for both models with anoisy fingerprint image, shown in Fig. 7. The result u obtained with the ROF modelis presented in Fig. 8 left, and the residual in Fig. right. We see that the noise hasbeen removed, but most of the texture is also removed from u.

In Fig. 9 we show results obtained with the new model applied to the noisyfingerprint image, for various parameters m, but the same parameter l. Note that,as expected, the proposed model keeps together the texture and the noise forsmaller m. It was also proved by Yves Meyer [17] that random additive noise ofzero mean belongs to the same space G. So, the noise is considered as texture by theproposed model. Note that, for decreasing m, more texture appears in the v com-ponent by the new model, but also more noise is kept.

In the next two examples (the fabric image and the wood image), we show thatthe new model can be used as a texture discriminator, by looking at the functions|g1 |, |g2 | or |gF|=`g2

1+g22. Even if the two textures are very similar, in these three

components, their differences are clearly seen and can be discriminated.Also, note that in general, texture discrimination is very expensive, since the

image f is substituted by a sequence of images, transforms of f at different scale,orientation and phase parameters (such as Gabor transforms), yielding a large setof initial data. Here, just one component suffices to discriminate textures, like |g1 |,|g2 |, or |gF|. In general, if we do not know which component(s) should be used, thenat most three channels are needed for texture discrimination and texture segmenta-tion, in a multi-channel segmentation fashion.

Note that we do not need to perform a learning process of the texture and itsstatistics, as it is often done. Other methods for texture segmentation are using theso called ‘‘textons’’, as local averages of curvature of level lines and of the orienta-tion of tangents to level lines (see for instance Koepfler, Lopez, and Morel [12] andChan and Vese [9]).

566 Vese and Osher

Page 15: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 9. Results using the new model with l=0.03 and m=2; 1; 0.5; 0.1.

Modeling Textures with Total Variation Minimization 567

Page 16: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 10. Results on the fabric image with the new model, with l=0.01 and m=0.001.

Fig. 11. Results corresponding to the fabric image. Texture discrimination using the functions |g1 |,|g2 |, or |gF|. The detected contour is obtained by applying the active contour model without edgesfrom [8, 9] to |g1 |.

568 Vese and Osher

Page 17: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 12. Results on the wood image with the new model, with l=0.1 and m=0.00001.

Fig. 13. Results corresponding to the wood image. Texture discrimination using the functions |g1 |,|g2 |, or |gF|. The detected contour is obtained by applying the active contour model without edgesfrom [8, 9] to |g2 |.

Modeling Textures with Total Variation Minimization 569

Page 18: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

Fig. 14. Left: f. Right: u+v with l=0.2, m=0.01, 100 iterations, p=1.

We show in Fig. 10 an initial image (fabric texture), and the results u+v, u andv obtained by the new model. In Fig. 11 we show the functions |g1 |, |g2 |, and |gF|.Here, we also show the contour between the two textures, extracted by applying theactive contour model without gradient based segmentation from [8, 9] to the image|g1 |.

Similar results are shown in Figs. 12 and 13, for another image (wood texture).Again, two of the functions |g1 |, |g2 |, and |gF| help to discriminate the textures.

Finally, we show one more numerical result in Figs. 14 and 15. We show theinitial image f (a noisy version of a real image), the result u+v and the u and v

Fig. 15. u (left) and v (right) components for the image in Fig. 14.

570 Vese and Osher

Page 19: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

components. Note that u+v is practically identical with f. The noise is kept in the vcomponent and therefore in the sum u+v, but it has been removed from the ucomponent.

Remark. Note that, since the residual |f − u − v| is very small but not exactlyzero, the proposed model produces in fact a decomposition of the form:f=u+v+r, where r=− 1

2l div( Nu|Nu|). In the limit, as l Q ., the model approximates

a decomposition of the form f=u+v.

5. CONCLUDING REMARKS

In this paper, we have shown how we can decompose a given image f into thesum u+v, where u ¥ BV is a function of bounded variation (a cartoon representa-tion of f), and v is an oscillatory function, representing random noise or texture.We have also shown how the method can be used to texture segmentation andtexture discrimination. The proposed model combines the idea of the total variationminimization in image restoration of Rudin, Osher, and Fatemi [22] with the ideasintroduced by Meyer [17] for the appropriate space to model texture or noise. Atthis moment, the model cannot distinguish between noise and texture. We plan todiscuss in the future how to denoise the v component, in the case of noisy texturedimages. Finally, we validate the claims of Yves Meyer on several experimentalresults, and we show in particular that textures can be defined and represented onlyusing two functions gF=(g1, g2). This is different from the wavelet decompositiontechniques or from the use of the Gabor transform.

ACKNOWLEDGMENTS

The authors would like to thank Guillermo Sapiro for suggesting some relatedreferences, Eitan Tadmor for valuable conversations on this subject, and RichardTsai, for discussions on the numerical discretization. L.A.V. was supported in partby NSF ITR-0113439, ONR N00014-02-1-0015, and NIH P20MH65166. S.J.O.was supported in part by NSF DMS-0074735, ONR N00014-97-1-0027 and NIHP20MH65166.

REFERENCES

1. Acar, R., and Vogel, C. R. (1994). Analysis of bounded variation penalty methods of ill-posedproblems. Inverse Problem 10, 1217–1229.

2. Alvarez, L., Guichard, F., Lions, P. L., and Morel, J.-M. (1993). Axioms and fundamentalequations of image-processing. Archive for Rational Mechanics and Analysis 123, 199–257.

3. Andreu, F., Ballester, C., Caselles, V., and Mazon, J. M. (2000). Minimizing total variationflow. CRAS I-Mathématique 331(11), 867–872.

4. Andreu, F., Caselles, V., Diaz, J. I., and Mazon, J. M. (2002). Some qualitative properties forthe total variation flow. J. Func. Anal. 188(2), 516–547.

5. Aubert, G., and Vese, L. (1997). A variational method in image recovery. SIAM J. Numer.Anal. 34(5), 1948–1979.

6. Ballester, C., and Gonzalez, M. (1998). Affine invariant texture segmentation and shape fromtexture by variational methods. J. Math. Imaging Vis. 9(2), 141–171.

Modeling Textures with Total Variation Minimization 571

Page 20: Modeling Textures with Total Variation Minimization and ...lvese/PAPERS/JSC_VeseOsher.pdf · Modeling Textures with Total Variation Minimization and Oscillating Patterns in Image

7. Casadei, S., Mitter, S., and Perona, P. (1992). Boundary Detection in Piecewise HomogeneousTextured Images, Lecture Notes in Computer Science, Vol. 588, pp. 174–183.

8. Chan, T., and Vese, L. (1999). An active contour model without edges. In Scale-Space Theoriesin Computer Vision, Lecture Notes in Computer Science, Vol. 1682, pp. 141–151.

9. Chan, T. F., and Vese, L. A. (2001). Active contours without edges. IEEE Transactions onImage Processing 10(2), 266–277.

10. Chambolle, A., and Lions, P. L. (1997). Image recovery via total variation minimization andrelated problems. Numer. Math. 76, 167–188.

11. Evans, L. C., and Gariepy, R. F. (1992). Measure Theory and Fine Properties of Functions, CRCPress, London.

12. Koepfler, G., Lopez, C., and Morel, J.-M. (1994). A multiscale algorithm for image segmenta-tion by variational method. SIAM J. Numer. Anal. 31(1), 282–299.

13. Lee, T. S. (1995). A Bayesian framework for understanding texture segmentation in the primaryvisual-cortex. Vision Research 35 (18), 2643–2657.

14. Lee, T. S., Mumford, D., and Yuille, A. (1992). Texture Segmentation by Minimizing Vector-Valued Energy Functionals—the Coupled-Membrane Model, Lecture Notes in Computer Science,Vol. 588, pp. 165–173.

15. Malgouyres, F. (2002). Mathematical analysis of a model which combines total variation andwavelet for image restoration, Journal of Information Processes 2(1), 1–10.

16. Malgouyres, F. (2001). Combining total variation and wavelet packet approaches for imagedeblurring. Proceedings, IEEE Workshop on Variational and Level Set Methods in ComputerVision, 57–64.

17. Meyer, Y. (2002). Oscillating Patterns in Image Processing and Nonlinear Evolution Equations,University Lecture Series, Vol. 22, Amer. Math. Soc.

18. Mumford, D., and Shah, J. (1989). Optimal approximations by piecewise smooth functions andassociated variational problems. Comm. Pure Appl. Math. 42(5), 577–685.

19. Oru, F. (1998). Le rôle des oscillations dans quelques problèmes d’analyse non-linéaire, Thèse,CMLA, ENS-Cachan, June 9, 1998.

20. Perona, P., and Malik, J. (1990). Scale-space and edge-detection using anisotropic diffusion.IEEE on PAMI 12(7), 629–639.

21. Rudin, L., and Osher, S. (1994). Total Variation Based Image Restoration with Free Local Con-straints, Proc. IEEE ICIP, Vol. I, Austin (Texas) USA, pp. 31–35.

22. Rudin, L., Osher, S., and Fatemi, E. (1992). Nonlinear total variation based noise removalalgorithms. Physica D 60, 259–268.

23. Sandberg, B., Chan, T., and Vese, L. (2002). A Level-Set and Gabor-Based Active ContourAlgorithm for Segmenting Textured Images, UCLA CAM Report 02-39.

24. Sapiro, G. (1997). Color Snakes. Computer Vision and Image Understanding 68(2), 247–253.25. Vese, L. (2001). A study in the BV space of a denoising-deblurring variational problem. Applied

Mathematics and Optimization 44(2), 131–161.26. Wells, W. M., III, Grimson, W. E. L., Kikinis, R., and Jolesz, F. A. (1996). Adaptive Segmen-

tation of MRI Data. IEEE Transactions on Medical Imaging, Vol. 15, No. 4.27. Zhu, S. C., Wu, Y. N., and Mumford, D. (1998). Filters, random fields and maximum entropy

(FRAME): Towards a unified theory for texture modeling. Intern. J. Comput. Vision 27(2),107–126.

28. Zhu, S. C., Wu, Y. N., and Mumford, D. (1997). Minimax entropy principle and its applicationto texture modeling. Neural Computation 9 (8), 1627–1660.

29. Candés, E. J., and Guo, F. (2002). New multiscale transforms, minimum total variation syn-thesis: Applications to edge-preserving image reconstruction. Signal Processing 82, 1519–1543.

572 Vese and Osher