• Aucun résultat trouvé

Grey-level hit-or-miss transforms—Part I: Unified theory

N/A
N/A
Protected

Academic year: 2021

Partager "Grey-level hit-or-miss transforms—Part I: Unified theory"

Copied!
17
0
0

Texte intégral

(1)

HAL Id: hal-01694418

https://hal.univ-reims.fr/hal-01694418

Submitted on 26 Feb 2018

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Grey-level hit-or-miss transforms-Part I: Unified theory

Benoît Naegel, Nicolas Passat, Christian Ronse

To cite this version:

Benoît Naegel, Nicolas Passat, Christian Ronse. Grey-level hit-or-miss transforms-Part I: Unified

theory. Pattern Recognition, Elsevier, 2007, 40 (2), pp.635-647. �10.1016/j.patcog.2006.06.004�. �hal-

01694418�

(2)

Grey-level hit-or-miss transforms - Part I: Unified theory

Benoˆıt Naegel

a,

∗ , Nicolas Passat

b,c

, Christian Ronse

b

aEIG-HES ( ´Ecole d’Ing´enieurs de Gen`eve), 4 rue de la Prairie, CH-1202 Gen`eve, Switzerland

bLSIIT, UMR 7005 CNRS-ULP (Laboratoire des Sciences de l’Image, de l’Informatique et de la T´el´ed´etection), Bd S. Brant, BP 10413, F-67412 Illkirch Cedex, France

cInstitut Gaspard Monge, Laboratoire A2SI (Algorithmique et Architecture des Syst`emes Informatiques), Groupe ESIEE, Cit´e Descartes, BP 99, F-93162 Noisy-le-Grand Cedex, France

Abstract

The hit-or-miss transform (HMT) is a fundamental operation on binary images, widely used since forty years. As it is not increasing, its extension to grey-level images is not straightforward, and very few authors have considered it. Moreover, despite its potential usefulness, very few applications of the grey-level HMT have been proposed until now. Part I of this paper, developed hereafter, is devoted to the description of a theory leading to a unification of the main definitions of the grey-level HMT, mainly proposed by Ronse and Soille, respectively (part II will deal with the applicative potential of the grey-level HMT, which will be illustrated by its use for vessel segmentation from 3D angiographic data). In this first part, we review the previous approaches to the grey-level HMT, especially the supremal one of Ronse, and the integral one of Soille;

the latter was defined only for flat structuring elements, but it can be generalized to non-flat ones. We present a unified theory of the grey-level HMT, which is decomposed into two steps. First a fitting associates to each point the set of grey-levels for which the structuring elements can be fitted to the image; as in Soille’s approach, this fitting step can be constrained. Next, a valuation associates a final grey-level value to each point; we propose three valuations: supremal (as in Ronse), integral (as in Soille) and binary.

Key words: Mathematical morphology, hit-or-miss transform, grey-level interval operator, angiographic image processing.

1. Introduction

Consider a Euclidean or digital space E (E = R

n

or Z

n

). For X ∈ P(E), write X

c

= E \ X (the complement of X), ˇ X = {− x | xX} (the symmetrical of X), and for pE, X

p

= {x + p | xX} (the translate of X by p). Then the Minkowski addition ⊕ and subtraction ⊖ are defined by setting for X, B ∈ P(E):

∗ Corresponding author: Benoˆıt Naegel.

Email:benoit.naegel@hesge.ch, tel: (+41) (0)22 338 05 66.

XB = [

b∈B

X

b

and XB = \

b∈B

X

−b

. This leads to the operators δ

B

: X 7→ XB (dilation by B) and ε

B

: X 7→ XB (erosion by B); here B is considered as a structuring element that acts on the binary image X. (NB. Our terminology follows [1,2], in accordance with the algebraic theory of dilations and erosions; it is slightly di ff erent from that of [3,4], in the sense that for some operations, the structuring element B is replaced by its symmetrical ˇ B, see [2,5]

for a more detailed discussion.)

The hit-or-miss transform (in brief, HMT) uses a

(3)

pair (A, B) of structuring elements, and looks for all positions where A can be fitted within a figure X, and B within the background X

c

, in other words it is defined by

X (A, B) = {p ∈ E | A

p

X and B

p

X

c

}

= (XA)(X

c

B) .

(1)

One assumes that AB = ∅, otherwise we have al- ways X (A, B) = ∅. One calls A and B respectively the foreground and background structuring element. In practice, one often uses bounded structuring elements A and B.

This operation was devised by Matheron and Serra in the mid-sixties [6,3], and has been widely used since. It represents the morphological expression of the notion of template matching.

The binary hit-or-miss transform is often applied in shape recognition, for example in document analysis [7–9]. Hardware implementations with optical corre- lators have been studied in [10–15]. These implemen- tations seem interesting, since computational time is independent from the size of the structuring element used, which is obviously not the case with software ones.

A recurrent issue consists in determining the struc- turing elements (SEs) in order to cope with the noise and the variability of the patterns to be recognized.

Zhao and Daut [16] propose a method to match imperfect shapes in an image. They start with a set of shapes to be recognized, then smooth each element of this set by some kind of opening. The boundaries of these smoothed sets are then used as SEs for the HMT.

Doh et al. [17] discuss the choice of SEs for the recognition of a class of various objects. They start from two sets: a set of hit SEs (i.e., SEs that fit the objects to be recognized) and a set of miss SEs (SEs that fit the background). Their conclusion is to use a synthetic hit SE composed of the intersection of all hit SEs and a synthetic miss SE composed of the union of all miss SEs.

Bloomberg et al. [8,9] introduce a blur HMT which consists in dilating both set X and complement X

c

. They also propose to subsample the structuring el- ements by imposing a regular grid. This allows the HMT to be less sensitive to noise while preserving the global characteristics of the shape.

The operator X 7→

X (A, B)

A has been consid- ered in [18] (it was suggested to the author by Heij- mans), and later in [4, p. 149], where it was called hit- or-miss opening. It is idempotent and anti-extensive, like an opening, but not increasing.

Although the HMT is widely used in binary image processing, there are only a few authors who consid- ered its possible extension to grey-level images (we review the main works in the next section). The main di ffi culty resides in the fact that this operator uses both the set X and its complement X

c

, and is thus neither increasing nor decreasing. Let us explain how to re- move X

c

from the definition (1).

Let A, B ∈ P(E) such that A ⊆ B. Consider the interval

[A, B] = {C ∈ P(E) | ACB} .

Then we define η

[A,B]

, the interval operator by [A, B], by setting for every X ∈ P(E):

η

[A,B]

(X) = {p ∈ E | X

−p

[A, B]}

= {p ∈ E | A

p

XB

p

} .

(2) Heijmans and Serra [19] were the first to consider such an operation, but they wrote it X T (A, B) instead of η

[A,B]

(X). Clearly η

[A,B]

(X) = X (A, B

c

). Here the in- clusion constraint AB (without which we always get η

[A,B]

(X) = ∅) corresponds to the disjointness condi- tion A∩B

c

= ∅ of the corresponding HMT X (A, B

c

).

In practice, one usually chooses A and the comple- ment B

c

of B to be bounded.

This variant formulation was fruitful. First it al- lowed to give a very short proof of the theorem of Banon and Barrera [20], namely that every translation- invariant operator is a union of HMTs. More precisely, given a translation-invariant operator ψ : P(E) → P(E), Matheron’s kernel [6] is the set

V(ψ) = {A ∈ P(E) | 0 ∈ ψ(A)} , (3) and indeed Matheron showed that if ψ is increasing, we have

ψ(X) = [

A∈V(ψ)

XA (4)

for every X ∈ P(E), in other words ψ is a union of erosions. Consider now the bi-kernel [19]

W(ψ) = {(A, B) ∈ P(E)

2

| AB, [A, B] ⊆ V(ψ)} ,(5)

(4)

then an elegant proof in [19] shows that for every X ∈ P(E) we have

ψ(X) = [

(A,B)∈W(ψ)

η

[A,B]

(X) , (6)

in other words ψ is a union of interval operators (equiv- alently, of HMTs).

However, the main advantage of considering an in- terval operator (2) instead of a HMT (1), is that it gave way to the first theory (by Ronse [18]) of interval op- erators on grey-level images and more generally on complete lattices, in particular the operators δ

A

η

[A,B]

are part of a very interesting family of idempotent and anti-extensive operators, called in [18] open-over- condensations.

A few years later, Soille [21,4] gave independently another definition of a HMT for grey-level images. His framework was restricted to the use of flat structuring elements and of discrete grey-levels. However, as we will see in the next section, it can easily be generalized to non-flat structuring functions and to images with arbitrary grey-levels (continuous or discrete). More- over, he introduced the possibility of constraining the HMT; as we will see later on, this constraining of the HMT can also be applied to Ronse’s version.

When it is extended to non-flat structuring elements, the unconstrained version of Soille’s HMT has some resemblance with Ronse’s interval operator [18], and is also very similar to an operation introduced by Barat et al. [22–24] under the name of morphological probing.

The authors have successfully applied grey-level HMTs to the detection of blood vessels in 3D angio- graphic images [25–28]. In fact, we used both Ronse’s and Soille’s unconstrained versions, but also some new variants. Therefore we have felt that it would be use- ful to make a review of the di ff erent grey-level HMTs found in the literature, and to give a unified theory containing each one as a particular case.

The paper is organized as follows. In Section 2 we review the various approaches to the grey-level HMT found in the literature, mainly the ones of Ronse [18], Soille [21,4] and Barat et al. [22–24]; we general- ize Soille’s approach to arbitrary (not necessarily flat) structuring elements and arbitrary (not necessarily dis- crete) grey-levels. We will see that these HMTs can be better understood by expressing them as grey-level extensions of the interval operator η

[A,B]

(2).

In Section 3 we give a unified theory of grey-level interval operators. Such an operator can be decom- posed into two steps:

(i) a fitting which extracts from a grey-level image and a pair of structuring functions, a set of pairs (p, t) (p a point, t a grey-level); we have two ver- sions (following the approaches of Ronse and Soille), and each one can optionally be con- strained as in Soille’s approach;

(ii) a valuation which constructs from this set of pairs (p, t) the resulting grey-level image; we have three versions: a supremal one (following Ronse), an integral one (following Soille), and a binary one (which produces a binary image).

This gives thus in theory a set of six unconstrained grey-level HMTs, and six constrained ones (however, there is some redundancy in this set).

The Conclusion summarizes our findings and gives some perspectives for further research. In particular, we have not extended our theory to the general frame- work of complete lattices, nor have we analysed the operators obtained by composition of the HMT and the dilation by the foreground structuring element (both things were done in [18] for one version of the HMT).

Part II of this paper [29] will provide a review of our work on the application of grey-level HMTs to the detection and enhancement of blood vessels in 3D an- giographic images, but also algorithmic remarks about grey-level HMT, still valid for more general applica- tions.

2. Existing approaches to the grey-level HMT We will review the various forms given in the lit- erature for the grey-level HMT. But let us beforehand recall the basics from grey-level morphology [1,30].

We consider a space E of points, which can in gen- eral be an arbitrary set. However, in order to define translation-invariant operators (like the dilation and erosion by a structuring element), we need to add and subtract points, so in this case we assume E to be the digital space Z

n

or the Euclidean space R

n

, for which the addition and subtraction of vectors are well- defined.

We have a set T of grey-levels, which is part of the

extended real line R = R ∪ { + ∞, −∞}. We require T

(5)

to be closed under nonvoid infimum and supremum operations (equivalently, T is a topologically closed subset of R); for example we can take T = R, T = Z = Z ∪ { + ∞, −∞}, T = [a, b] (a, bR, a < b) or T = [a . . . b] = [a, b]Z (a, bZ, a < b). Then T is a complete lattice [1] w.r.t. the numerical order ≤.

Write ⊤ and ⊥ respectively for the greatest and least elements of T .

Grey-level images are numerical functions ET , they are generally written by capital letters F, G, H, . . . The set T

E

of such functions is a complete lattice for the componentwise ordering defined by

FG ⇐⇒ ∀p ∈ E, F(p)G(p) , with the componentwise supremum and infimum op- erations:

and _

i∈I

F

i

: EV : p 7→ sup

i∈I

F

i

(p)

^

i∈I

F

i

: EV : p 7→ inf

i∈I

F

i

(p) . Let us now introduce some notation. Given F, GT

E

, we write GF (or equivalently, FG) if there is some h > 0 such that for every pE we have G(p)F(p) + h. For FT

E

and pE, the translate of F by p is the function F

p

: ET : x 7→ F(xp). The support of a function F is the set supp(F) of points of E having grey-level F(p) strictly above the least value

⊥:

supp(F) = {p ∈ E | F(p) > ⊥} , (7) and the dual support of F is the set supp

(F) of points of E having grey-level F(p) strictly below the greatest value ⊤:

supp

(F) = {p ∈ E | F(p) < ⊤} . (8) For every tT , write C

t

for the function ET with constant value t: ∀p ∈ E, C

t

(p) = t. We see in particular that the least and greatest elements of the lattice T

E

of numerical functions are the constant functions C

and C

respectively. For any BE and tT , the cylinder of base B and level t is the function C

B,t

defined by

∀p ∈ E, C

B,t

(p) =

 

 

 

 

t if pB,

if p < B.

(9)

Note in particular that C

t

= C

E,t

. Also, for hE and tT , the impulse i

h,t

is the cylinder C

{h},t

, thus

∀p ∈ E, i

h,t

(p) =

 

 

 

 

t if p = h,

if p , h.

(10)

For FT

E

, we have i

h,t

F i ff tF(h), and F = _

{i

h,t

| hE, tT , tF(h)} , in other words every function is a supremum of the impulses below it.

The dual cylinder of base B and level t is the func- tion C

B,t

defined by

∀p ∈ E, C

B,t

(p) =

 

 

 

 

t if pB,

if p < B.

(11)

For V, WT

E

with VW, we have the interval [V, W] = {F ∈ E

T

| VFW }.

Every increasing operator ψ : P(E) → P(E) on sets extends to a flat operator ψ

T

: T

E

T

E

on grey-level images [31]. For every FT

E

and tT we define the threshold set [1]

X

t

(F) = {p ∈ E | F(p)t} .

Clearly X

t

(F) is decreasing with respect to t. Now ψ

T

is defined by applying ψ to each threshold set and stacking the results. Formally:

ψ

T

(F) = _

t∈T

C

ψ(Xt(F)),t

, (12)

so that for every point pE we have ψ

T

(F)(p) = _

{t ∈ T | p ∈ ψ (X

t

(F))} . (13) In particular, when E = R

n

or Z

n

, the dilation δ

B

and erosion ε

B

by a structuring element B extend as follows:

δ

TB

(F) = _

b∈B

F

b

and ε

TB

(F) = ^

b∈B

F

−b

, (14) so that for every point pE we have

and

δ

TB

(F)(p) = _

b∈B

F(pb) ε

TB

(F)(p) = ^

b∈B

F(p + b) .

(15)

(6)

We will also write FB and FB for δ

TB

(F) and ε

TB

(F) respectively.

Let us now consider morphological operations with structuring elements that are functions instead of sets.

Here grey-levels will be added and subtracted in for- mulas, thus in order to avoid grey-level overflow in computations, T must necessarily be unbounded (so

⊤ = + ∞ and ⊥ = −∞), in fact we assume that T = R or Z (however T = aZ = {az | zZ} ∪ { + ∞, −∞}, where a > 0, is also possible). Let T

= T \ { + ∞, −∞}, the set of finite grey-levels. We saw above that a func- tion F can be translated by a point pE, this is a hor- izontal translation; now there is also a vertical transla- tion, namely by a finite grey-level tT

, transforming F into F + t. Combining both, we get the translation by (p, t), the translate of F by (p, t) is F

(p,t)

= F

p

+ t : x 7→ F(xp) + t. We consider impulses i

h,t

only for tT

. The umbra of a function FT

E

is the set U(F) = {(h, t) | hE, tT

, tF(h)} . (16) Note that for an impulse i

h,t

, we have i

h,t

F i ff (h, t)U(F), and

F = _

{i

h,t

| (h, t)U(F)} . (17) For F, GT

E

, we can define the Minkowski addition FG and subtraction FG as follows:

and

FG = _

(h,t)∈U(G)

F

(h,t)

FG = ^

(h,t)∈U(G)

F

(−h,−t)

.

(18)

At every point pE we have (FG)(p) = sup

h∈E

F(ph) + G(h)

= sup

h∈supp(G)

F(ph) + G(h) and

(FG)(p) = inf

h∈E

F(p + h)G(h)

= inf

h∈supp(G)

F(p + h)G(h) . Since T = R or Z, the terms F(p−h), F(p + h), and G(h) can have an infinite value, so the expressions F(ph) + G(h) and F(p + h)−G(h) can take the form + ∞−∞

or −∞ + ∞, which are arithmetically undefined; then their evaluation is achieved by the following rules:

– In the formula for (F⊕G)(p), we consider that + ∞ = W T

and −∞ = W ∅, so + ∞ − ∞ = W

t∈T

W

t∈∅

(t + t

) = W ∅ = −∞, in other words expressions of the form + ∞ − ∞ or −∞ + ∞ must be evaluated as −∞.

– Dually, in the formula for (FG), we consider that + ∞ = V ∅ and −∞ = V T

, so expressions of the form + ∞ − ∞ or −∞ + ∞ must be evaluated as + ∞.

We obtain thus the dilation and erosion by G, namely δ

G

: F 7→ FG and ε

G

: F 7→ FG. These two operations form an adjunction [1]:

∀F

1

, F

2

T

E

, F

1

GF

2

⇐⇒ F

1

F

2

G .(19) Consider the symmetrical ˇ G of G defined by ˇ G(x) = G(−x), and the grey-level inversion TT : t 7→ −t, which extends to functions by transforming F into

−F : x 7→ −F(x). From (18) is easily seen that

and −(F ⊕ G) = (−F) ⊖ G ˇ

−(F ⊖ G) = (−F) ⊕ G ˇ ,

(20) in other words, erosion is the dual under grey-level inversion of the dilation with the symmetrical struc- turing function. Let us define the dual of G as G

=

G : x ˇ 7→ −G(−x).

Taking a set B ∈ P(E) as structuring element, the flat dilation and erosion by B seen in (14,15) are a particular case of dilation and erosion by a grey-level function, since we have:

FB = FC

B,0

and FB = FC

B,0

. (21) More generally, for tT

, we have

and FC

B,t

= (FB) + t FC

B,t

= (FB)t .

(22) Structuring functions of the form C

B,0

are also called flat structuring elements.

Grey-level Minkowski operations do not always preserve the bounds of image grey-levels:

Lemma 1 Let F, GT

E

such that F(p)[a, b] for all pE, and let g = sup

p∈E

G(p). Then for all pE we have (FG)(p)[a + g, b + g] and (FG)(p)[ag, bg].

Proof From (18) we check easily that for any tT ,

C

t

⊕G = C

t+g

and C

t

⊖G = C

t−g

. The fact that ∀p ∈ E,

F(p)[a, b], means that C

a

FC

b

. Hence we

get C

a+g

= C

a

GFGC

b

G = C

b+g

and

(7)

C

a−g

= C

a

GFGC

b

G = C

b−g

, that is

∀p ∈ E, (FG)(p)[a + g, b + g] and (FG)(p)[ag, bg]. Q.E.D.

The next result is fundamental for our analysis:

Proposition 2 Let F, V, WT

E

, pE and tT

. Then:

(i) V

(p,t)

F iff (FV)(p)t.

(ii) V

(p,t)

F iff (FV)(p) > t.

(iii) FW

(p,t)

iff (FW

)(p)t.

(iv) FW

(p,t)

iff (FW

)(p) < t.

Proof 1. (FV)(p)t means i

(p,t)

FV, and by adjunction (19) this is equivalent to i

(p,t)

VF;

but i

(p,t)

V = V

p,t

, so the result follows.

2. V

(p,t)

F i ff there is some h > 0 with V

(p,t)

F −h; by item 1, this is equivalent to

(F −h)⊖V (p)t, in other words (FV)(p)ht for some h > 0, that is (FV)(p) > t.

3. By grey-level inversion, FW

(p,t)

i ff −F ≥

−(W

(p,t)

) = (−W)

(p,−t)

. Applying item 1, this is equiv- alent to

(−F) ⊖ (−W)

(p) ≥ −t. Inverting again, this means −

(−F) ⊖ (−W)

(p)t; by duality (20),

(−F) ⊖ (−W)

= −(−F) ⊕ (−W)

= FW

, and the result follows.

4. FW

(p,t)

i ff there is some h > 0 with F + hW

(p,t)

; by item 3, this is equivalent to

(F + h)W

)

(p)t, in other words (FW

)(p) + ht for some h > 0, that is (FW

)(p) < t. Q.E.D.

Let us apply this result to the case where (F ⊖V)(p) or (FW

)(p) has an infinite value:

Corollary 3 Let F, V, WT

E

and pE. Then:

(i) (FV)(p) = + ∞ iff

∀t ∈ T

, V

(p,t)

F

iff W

t∈T

V

(p,t)

F.

(ii) (FV)(p) = −∞ iff

∀t ∈ T

, V

(p,t)

6≤ F

. (iii) (FW

)(p) = + ∞ iff

∀t ∈ T

, F 6≤ W

(p,t)

. (iv) (FW

)(p) = −∞ iff

∀t ∈ T

, FW

(p,t)

iff F ≤ V

t∈T

W

(p,t)

.

Proof Items 1 and 2 follow from item 1 of Proposi- tion 2, and the fact that + ∞ is the only value ≥ t for all tT

, while −∞ is the only one 6≥ t for all tT

. Items 3 and 4 follow from item 3 of Proposition 2, and the fact that + ∞ is the only value 6≤ t for all tT

, while −∞ is the only one ≤ t for all tT

. Q.E.D.

Note that if F has all its values in an inter- val [t

0

, t

1

] ⊂ R, and sup

p∈E

V(p) = vR and inf

p∈E

W(p) = wR, then by Lemma 1, FV and FW

will have all their values in the intervals [t

0

v, t

1

v] and [t

0

w, t

1

w] respectively, hence infinite values do not occur in such a case.

2.1. Ronse’s supremal interval operator

The basic ideas in Ronse’s approach [18] are to start from the interval operator (2) instead of the HMT, and to consider the fact that a grey-level image is a supremum of impulses (17) as the parallel of the fact that a set is a union of singletons. We still assume that T = Z or R. We define thus for V, WT

E

such that VW the supremal interval operator η

S[V,W]

by setting for every FT

E

:

η

S[V,W]

(F)

= _

{i

(p,t)

| (p, t)E × T

, F

(−p,−t)

[V, W]}

= _

{i

(p,t)

| (p, t)E × T

, V

(p,t)

FW

(p,t)

} . (23)

Note that following [19], Ronse wrote F T (V, W) for η

S[V,W]

(F). By Proposition 2, for tT

, V

(p,t)

FW

(p,t)

i ff (FW

)(p)t(FV)(p). Hence for every pE,

η

S[V,W]

(F)(p) = sup{t ∈ T

| V

(p,t)

FW

(p,t)

} . Now for ab, we have b = sup{t ∈ T

| atb}, except if a = b = + ∞, in which case we get the empty supremum, that is −∞. We obtain thus:

η

S[V,W]

(F)(p) =

 

 

 

 

 

 

 

 

(FV)(p) if (FV)(p)(FW

)(p)

, + ∞ ,

−∞ otherwise .

(24)

Note that if (FV)(p) = (FW

)(p) = + ∞, by Corollary 3 we have F 6≤ W

(p,t)

for all tT

, so that η

S[V,W]

(F)(p) = −∞, and not + ∞.

In practice, one usually chooses V with bounded

support, and W with bounded dual support (i.e., W

has bounded support). For example, we can take V =

C

A,a

and W = C

B,b

, see Fig. 1; then W

= C

B,−bˇ

and

(8)

A B B

V W

E T

a

b

Fig. 1. Top: The two structuring elements A (in black) and B (in grey). Bottom: the cylinder V=CA,a (in black) has support A and the dual cylinder W=CB,b(in grey) has dual support B.

by (22), FV = (F ⊖A) − a and FW

= (FB)− ˇ b, so that (24) gives here:

η

S[V,W]

(F)(p) =

 

 

 

 

 

 

 

 

(FA)(p)a if (FA)(p)(FB)(p) ˇ + ab

, + ∞ ,

−∞ otherwise .

For A, B and a fixed, η

S[V,W]

(F) increases with b, as more and more points will get the value (FA)(p)− a instead of −∞. We illustrate this in Fig. 2.

The operator δ

V

η

S[V,W]

maps FT

E

on

_ {V

(p,t)

| (p, t)E × T

, V

(p,t)

FW

(p,t)

} . It is idempotent and anti-extensive like an opening [18], but not increasing. It is part of a family of oper- ators called open-over-condensations.

In [18] the theorem of Banon-Barrera (5,6) was also extended to grey-level images (and more generally, in a complete lattice where Minkowski operations are properly defined [2]): every translation-invariant op- erator is a supremum of supremal interval operators.

0

−1 T

E A

B B

Fig. 2. Here E=Z and T=Z. On top we show the two structuring elements A and B (the origin being the left pixel of A), with the associated levels a=0 and b=−1 (thus V=CA,0and W=CB,−1).

Below we show a function F, and in grey we have ηS[V,W](F), forming three peaks. The left peak would disappear for b≤ −2, and the right one for b≤ −3.

2.2. Soille’s integral HMT

Soille [21,4] assumes discrete grey-levels (an inter- val in Z) and flat structuring elements. If we return to the formula (13) for the construction of the flat op- erator ψ

T

from an increasing set operator ψ, the set of all tT such that p ∈ ψ (X

t

(F)) is a closed inter- val [⊥, b], where b gives the value ψ

T

(F)(p) (NB. this holds because we have discrete grey-levels; otherwise we could have the half-open interval [⊥, b[). This is no longer valid if ψ is not increasing; in particular, if ψ is a HMT, we will see below that it is an interval, but generally not containing ⊥. The idea in [21,4] is to take as value of the grey-level HMT the length of that interval.

Let A, B ∈ P(E) be disjoint structuring elements, and consider the finite grey-level set ˆ T = [t

0

. . . t

1

] ⊂ Z. Soille’s (unconstrained) HMT on grey-level images, written U H MT

A,B

, is defined [4, Eq. (5.3) p. 143] by setting for every FT ˆ

E

and pE:

U H MT

A,B

(F)(p) =

card{tT | pX

t

(F) (A, B)} .

(25) Note that the resulting grey-level values will be non- negative, in fact they belong to the interval [0, t

1

t

0

].

We illustrate it in Fig. 3 (to be compared with Fig. 2).

(9)

A B B T

E Fig. 3. Here E=Z and T=[0. . .t1]⊂Z. On top we show the two structuring elements A and B (the origin being the left pixel of A). Below we show a function F (the same as in Fig. 2); the dots indicate the pairs (p,t) with pXt(F)(A,B), and in grey we have U H MTA,B(F).

In order to analyse Soille’s operator, we embed the grey-level set ˆ T into Z:

Proposition 4 Let A, B ∈ P(E), T = Z and ˆ T = [t

0

. . . t

1

] ⊂ Z. For every tT , FT ˆ

E

and pE, we have pX

t

(F) (A, B) iff

(C

A,0

)

(p,t)

= C

Ap,t

FC

B

p,t

= (C

B,0

)

(p,t)

, iff (FB)(p) ˇ < t(FA)(p).

Proof Recall that qX

t

(F) i ff F(q)t. The con- dition pX

t

(F) (A, B) means that A

p

X

t

(F) and B

p

X

t

(F)

c

. The first part A

p

X

t

(F) translates as:

for every qA

p

, F(q)t; on the other hand, for q <

A

p

, we have always F(q) ≥ −∞; hence A

p

X

t

(F)C

Ap,t

F. The second part B

p

X

t

(F)

c

translates as:

for every qB

p

, F(q) < t, that is F(q) + 1 ≤ t; on the other hand, for q < B

p

, we have always F(q) + 1 ≤ t

1

+ 1 ≤ + ∞; hence B

p

X

t

(F)

c

FC

B

p,t

. There- fore pX

t

(F) (A, B) i ff C

Ap,t

FC

B

p,t

. Now clearly C

Ap,t

= (C

A,0

)

(p,t)

and C

B

p,t

= (C

B,0

)

(p,t)

. Ap- plying Proposition 2, and the fact that (C

B,0

)

= C

B,0ˇ

, the condition (C

A,0

)

(p,t)

F(C

B,0

)

(p,t)

is equivalent to (FC

B,0ˇ

)(p) < t(FC

A,0

)(p), in other words by (22), (FB)(p) ˇ < t(FA)(p). Q.E.D.

We get thus:

U H MT

A,B

(F)(p) = max n

(FA)(p)(FB)(p), ˇ 0 o ,

(26) in other words [4, Eq. (5.4) p. 143] it has value

(FA)(p)(FB)(p) ˇ

if (FA)(p) > (FB)(p), and 0 otherwise. ˇ

From Proposition 4, we see that Soille’s grey-level HMT is not restricted to flat structuring elements; the two sets A and B correspond implicitly to the cylinder C

A,0

and the dual cylinder C

B,0

. Also, it does not re- quire discrete grey-levels; we have simply to measure at each point p the half-open interval i

(FB)(p), ˇ (FA)(p) i

. Now the Lebesgue measure in R and the dis- crete measure (cardinal) in Z, when applied to a half- open interval ]a, b], both give its length ba.

Assume thus T = Z or R. Let mes be the measure used on T

(Lebesgue’s for T

= R and discrete for T

= Z). For V, WT

E

such that VW, we define the integral interval operator η

[V,W]I

by setting for every FT

E

and pE:

η

I[V,W]

(F)(p)

= mes

{t ∈ T

| V

(p,t)

FW

(p,t)

}

= mes

{t ∈ T

| (FW

)(p) < t(FV)(p)}

= max n

(FV)(p)(FW

)(p), 0 o .

(27)

In the third line of the equation, an expression of the form + ∞ − ∞ or −∞ + ∞ for (F ⊖V)(p) − (FW

)(p) must lead to the value 0. Indeed, if (FV)(p) = (FW

)(p) = + ∞, Corollary 3 gives F 6≤ W

(p,t)

for all tT

, while if (FV)(p) = (FW

)(p) = −∞, Corollary 3 gives V

(p,t)

6≤ F for all tT

; in both cases the second line of the equation gives mes(∅) = 0.

We can take, as above with Ronse’s operator, V = C

A,a

and W = C

B,b

. For A, B and a fixed, increasing b increases η

I[V,W]

(F) by the same amount on all points having non-zero value. For flat structuring elements (V = C

A,0

and W = C

B,0

), we obtain Soille’s original operator U H MT

A,B

.

As can be seen with Fig. 2 and 3, the two inter- val operators η

S[V,W]

and η

I[V,W]

can be used to detect in an image all locations p where the grey-level on A

p

is higher than that on B

p

by at least some height h:

here we take V = C

A,a

and W = C

B,b

with h = ab.

While η

S[V,W]

behaves as the erosion ε

V

at such loca- tions, η

I[V,W]

measures the e ff ective di ff erence between the grey-levels in A

p

and B

p

.

Note that, contrarily to δ

V

η

S[V,W]

, the operator

δ

V

η

I[V,W]

is not necessarily idempotent. Take for ex-

ample E = Z, the flat structuring elements A = {0}

(10)

and B = {−1} (thus V = C

{0},0

and W = C

{−1},0

). Then δ

V

= ε

V

is the identity, while δ

W

is the translation by + 1. We illustrate in Fig. 4 the construction of δ

V

η

[V,W]I

(F) and

δ

V

η

I[V,W]

2

(F) for F given by F(z) = z for z = 1, . . . , 5 and F(z) = 0 otherwise.

0 1 2 3 4 5 6 0 1 2 3 4 5 6 0 1 2 3 4 5 6

0 1 2 3 4 5 6

0 1 2 3 4 5 6

(b)

(c) (a)

(d)

(e)

Fig. 4. (a) The function F; we have FV = F (with V =C{0},0). (b) The function F =FW (with W =C{−1},0) is the translate of F by +1. (c) G = ηI[V,W](F) is given by G(p)=max{F(p)−F(p),0}; we have G=δV(G)VηI[V,W](F), and G=GV. (d) G=GWis the translate of G by+1. (e) HI[V,W](G) is given by H(p)=max{G(p)−G(p),0}; we have HV(H)VηI[V,W](G)=

δVη[V,W]I 2

(F).

Soille introduced a constrained variant C MHT

A,B

of his HMT. Here we assume that one of the two structuring elements A and B contains the origin o.

If oA, in (25) we require that pX

t

(F) (A, B) for t = F(p), which means that (FB)(p) ˇ < F(p)(FA)(p); if the requirement is not met, the result is 0. As oA, we always have (F ⊖A)(p) ≤ F(p), hence we get

CH MT

A,B

(F)(p) =

card{tT | (FB)(p) ˇ < t(FA)(p) = F(p)} , in other words it is equal to

 

 

 

 

 

 

 

 

(FA)(p)(FB)(p) if F(p) ˇ = (FA)(p)

> (FB)(p) ˇ ,

0 otherwise .

If oB, in (25) we require that pX

t

(F) (A, B) for t = F(p) + 1, which means that (F⊕ B)(p) ˇ < F(p) + 1 ≤

(FA)(p) that is (FB)(p) ˇ ≤ F(p) < (FA)(p), and the result is 0 if this condition fails. As oB, we always have (FB)(p) ˇ ≥ F(p), so we get

CH MT

A,B

(F)(p) =

card{tT | F(p) = (FB)(p) ˇ < t(FA)(p)} , in other words it is equal to

 

 

 

 

 

 

 

 

(FA)(p)(FB)(p) if (F ˇ ⊖ A)(p) >

(FB)(p) ˇ = F(p) ,

0 otherwise .

In order to generalize this to arbitrary structuring functions, we can forget the requirement that A or B contains the origin, but keep only the constraint that F(p) = (FA)(p) or F(p) = (FB)(p). Thus we ob- ˇ tain, for V , WT

E

such that VW, the constrained integral interval operator η

C[V,W]

, which gives for every FT

E

and pE:

η

C[V,W]

(F)(p)

=

 

 

 

 

 

 

 

 

η

I[V,W]

(F)(p) if F(p) = (FV)(p) or F(p) = (FW

)(p) , 0 otherwise .

(28)

2.3. Barat’s morphological probing

Barat et al. [22–24] introduced under the name of morphological probing an operation which has some similarity to the integral grey-level interval operator η

I[V,W]

. We consider again two structuring functions V, WT

E

; the idea is to measure at each point pE two numerical values t

v

and t

w

defined as follows: t

v

is the greatest t such that V

p,t

F, while t

w

is the least t such that FW

p,t

; then one associates to p the value t

w

t

v

.

From Proposition 2 and Corollary 3, we have and (FV)(p) = sup{t ∈ T

| V

(p,t)

F}

(FW

)(p) = inf{t ∈ T

| FW

(p,t)

} . (29) Moreover:

– if (FV)(p) , ±∞, (F ⊖V)(p) is the greatest t ∈ T

such that V

(p,t)

F;

(11)

– if (F ⊕W

)(p) , ±∞, (F ⊕W

)(p) is the least tT

such that FW

(p,t)

.

Thus Barat’s morphological probing operator MP

V,W

is given by

MP

V,W

(F)(p) = (FW

)(p)(FV)(p) (30) for every FT

E

and pE. We have η

I[V,W]

(F)(p) = max{−MP

V,W

(F)(p), 0} by comparison to (27). We il- lustrate in Fig. 5 the di ff erence between morphological probing and the integral grey-level interval operator.

t t

v w

p

p

W W

V V

Fig. 5. Left: In morphological probing, we look for the least interval [tv,tw] such that Vp,tvF and FWp,tw. Right: in the integral interval operator, we look for the greatest interval {t|Vp,tFWp,t}.

Contrarily to the two interval operators seen above, here we do not require on the structuring functions V and W that VW, but rather that we always have FW

FV. For example consider two func- tions G

v

, G

w

defined on a support S , such that −∞ <

G

w

(p)G

v

(p) < + ∞ for all pS , and let V, W be defined by V(p) = G

v

(p) and W(p) = G

w

(p) for pS , while V(p) = −∞ and W(p) = + ∞ for p < S . Here we will have

(FW

)(p) = sup

h∈S

F(p + h)G

w

(h)

≥ inf

h∈S

F(p + h)G

v

(h)

= (FV)(p) .

In [22–24] the particular case where G

v

= G

w

was considered. For instance, if G

v

= G

w

has constant value 0 on S , we get V = C

S,0

and W = C

S,0

, as in the left image in Fig. 5.

2.4. Other works

Khosravi and Schafer [32] use a single structuring function V and define a grey-level HMT on F as the arithmetical sum [FV] + [(−F) ⊖ (−V)]; by duality (20), this is equal to [FV][FV

]. This is thus the same as η

I[V,V]

, except that negative values are not changed into 0.

Schaefer and Casasent [13] use two structuring functions V and W, and define a grey-level HMT on F as the meet [FV] ∧ [(−F) ⊖ W] (however they use a non-standard notation for expressing this).

Raducanu and Gra˜na [33] compare the grey-level HMT (GHMT) defined by Khosravi and Schafer [32]

with an operator called the level set hit-or-miss trans- form (LSHMT). This operator consists in applying a binary HMT to the successive thresholds of a func- tion F and of a structuring function G, and keep the supremum of all results:

F G = sup{t ∈ T | pX

t

(F)

X

t

(G), X

t

(G)

c

} .

3. Unified theory

From the two interval operators described in Sub- sections 2.1 and 2.2, we see that both involve two steps: first a fitting which associates to an image F a set of pairs (p, t)E × T

, for which the translates V

(p,t)

and W

(p,t)

have some relation to F; it can even- tually be associated to the operation of constraining;

second a valuation which derives from this set of (p, t) a new grey-level image.

Assume V , WE

T

with VW. The fitting used in Ronse’s supremal interval operator will be written H

V,W

, it is defined by

H

V,W

(F) = {(p, t)E × T

| V

(p,t)

FW

(p,t)

} . (31) Another one was used in Soille’s integral interval op- erator, we write it K

V,W

, it is defined by

K

V,W

(F) = {(p, t)E × T

| V

(p,t)

FW

(p,t)

} .(32) Next, the constraining is the operator C

V,W

: T

E

→ P(E × T

), associating to a function F : ET the set

C

V,W

(F) = n

pE | F(p) = (FV)(p) or F(p) = (FW

)(p) o

× T

.

(33)

(12)

We get thus the two constrained fittings H

CV,W

and K

V,WC

defined by

and H

CV,W

(F) = H

V,W

(F)C

V,W

(F) K

CV,W

(F) = K

V,W

(F)C

V,W

(F) .

(34)

The valuation must associate to any subset of E ×T

a function ET . The one used in Ronse’s supremal interval operator is the upper envelope operator S , associating to any Y ∈ P(E × T

) the function S (Y) : ET : p 7→ sup{t ∈ T

| (p, t)Y} . (35) Note that S is a dilation in the algebraic sense [1], that is:

S [

i∈I

Y

i

= _

i∈I

S (Y

i

) ; (36)

the adjoint erosion [1] is the map associating to a function F its umbra U(F), see (16).

Soille’s integral interval operator uses another one, written I, associating to any Y ∈ P(E×T

) the function I(Y) : ET : p 7→ mes

{t ∈ T

| (p, t)Y}

, (37)

where mes means the measure (Lebesgue’s for T

= R and discrete for T

= Z). Following [19], for a sequence X

n

of sets and a set X, we write X

n

X to mean that the sequence X

n

(nN) is increasing (i.e., X

n

X

n+1

for all nN) and converges to X (i.e., X = S

n∈N

X

n

); similarly for a numerical sequence r

n

, r

n

r means that the sequence is increasing and converges to r (i.e., r

n

r

n+1

for all nN, and r = sup

n∈N

r

n

). A well-known property of measures is that for a sequence X

n

of measurable sets, X

n

X = ⇒ mes(X

n

) ↑ mes(X) (see Theorem 1.8(c) on p. 25 of [34]). We have thus for a sequence Y

n

(nN) in E × T

:

Y

n

Y = ⇒ I(Y

n

) ↑ I(Y) , (38) which is weaker than being a dilation, as in (36).

We introduce a third valuation, the binary one B, which associates to any Y ∈ P(E × T

) the set B(Y) = {p ∈ E | ∃t ∈ T

, (p, t)Y } . (39) We can represent it as a function with value + ∞ on B(Y) and −∞ elsewhere, this gives thus the binary mask valuation M associating to Y the function

M(Y) : ET : p 7→

 

 

 

 

+ ∞ if ∃t ∈ T

, (p, t)Y ,

−∞ otherwise .

(40)

Note that B and M are also dilations in the algebraic sense, that is:

and

B [

i∈I

Y

i

= [

i∈I

B(Y

i

)

M [

i∈I

Y

i

= _

i∈I

M(Y

i

) ;

(41)

their adjoint erosions are respectively: for B the map P(E) → P(E × T

) : X 7→ X × T

, and for M the map {−∞, + ∞}

E

→ P(E ×T

) : F 7→ supp(F)×T

= U(F).

Composing one of H

V,W

or K

V,W

, optionally con- strained by intersection with C

V,W

, by one of S , I and M, we obtain an interval operator. We have thus six unconstrained operators S H

V,W

, S K

V,W

, IH

V,W

, IK

V,W

, MH

V,W

and MK

V,W

, as well as six constrained ones, S H

CV,W

, S K

V,WC

, IH

V,WC

, IK

V,WC

, MH

V,WC

and MK

CV,W

. We see then that Ronse’s supremal interval operator is S H

V,W

, Soille’s unconstrained integral interval oper- ator is IK

V,W

, while the constrained one is IK

CV,W

. In [27,28] we used a union of BH

V,W

for various choices of pairs (V , W), as a form of segmentation of tubular shapes, while in [25,26] we associated to an image F the image

FMK

V,W

(F) : p 7→

 

 

 

 

F(p) if ∃t ∈ T

, V

(p,t)

FW

(p,t)

,

−∞ otherwise ,

which represents tubular shapes with their original grey-level.

Let us compare, for each valuation S , I or M, the interval operators according to the two fitting operators H

V,W

(31) and K

V,W

(32). The relation between the two fittings di ff ers with the choice of Z or R for T :

T = Z :

H

V,W

= K

V,W+1

and K

V,W

= H

V,W−1

; T = R :

H

V,W

= \

ε>0

K

V,W+ε

and K

V,W

= [

ε>0

H

V,W−ε

.

(42)

Références

Documents relatifs

An initial partitioning of the image into primitive regions is produced by applying the watershed transform on the image gradient magnitude, then this segmentation results is treated

First, all the parts of the head do not contain the same quantity of vessels (this as- sumption takes into account the fact that MRA is unable to detect vessels having a diameter

Blur grey-level hit-or-miss transform for fully automatic 3D segmentation of coronary arteriesB. Bessem Bouraoui, Christian Ronse, Nicolas Passat, Joseph Baruthio,

The segmentation method is decomposed into three steps: (i) detection of the heart zone, (ii) detection of the aorta by application of a novel extension of the grey-level

In Section 5, pattern recognition and content-based image retrieval regardless of the orientation and scale of gray-level images is tested with the computation of a real

In this paper, we have proposed a method to embed safely into a grey level image its color information. This method is based on a decomposition of a color image in an index image and

This attack is specific to wa- termarking schemes hiding the color information and is an indirect attack in order to retrieve a color image closed to the original one.. Few

Authors of [4] sort the colors of the color palette in order to get an index image which is near of the luminance of the original color image and in the same time they get a