<<

IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012 805

Short Papers______M- and Self-Dual and morphological filters ( and , alternating filters, Morphological Filters alternating sequential filters (ASF)). The quest for self-dual and/or idempotent operators has been the focus of many investigators. We refer to some important work Nidhal Bouaynaya, Member, IEEE, in the area in chronological order. A morphological operator that is Mohammed Charif-Chefchaouni, and idempotent and self-dual has been proposed in [28] by using the Dan Schonfeld, Fellow, IEEE notion of the middle element. The middle element, however, can only be obtained through repeated (possibly infinite) iterations. Meyer and Serra [19] established conditions for the idempotence of Abstract—In this paper, we present a comprehensive analysis of self-dual and the class of the contrast mappings. Heijmans [8] proposed a m-idempotent operators. We refer to an operator as m-idempotent if it converges general method for the construction of morphological operators after m iterations. We focus on an important special case of the general theory of that are self-dual, but not necessarily idempotent. Heijmans and lattice morphology: spatially variant morphology, which captures the geometrical Ronse [10] derived conditions for the idempotence of the self-dual interpretation of spatially variant structuring elements. We demonstrate that every annular operator, in which case it will be called an annular filter. increasing self-dual morphological operator can be viewed as a morphological An alternative framework for morphological image processing that center. Necessary and sufficient conditions for the idempotence of morphological operators are characterized in terms of their kernel representation. We further gives rise to image operators which are intrinsically self-dual is extend our results to the representation of the kernel of m-idempotent based upon the definition of a new self-dual partial ordering. morphological operators. We then rely on the conditions on the kernel Heijmans and Keshet [9] and Mehmet and Jackway [16] proposed representation derived and establish methods for the construction of alternative self-dual orderings on the gray-scale values of images. m-idempotent and self-dual morphological operators. Finally, we illustrate the Self-dual morphological operators result in a natural way if the importance of the self-duality and m-idempotence properties by an application to underlying partial ordering is self-dual. The price paid for this speckle noise removal in radar images. property is that the underlying of the image space is less rich. One ends up with rather than with lattices [9]. More discussion on morphology for images with Index Terms—, spatially-invariant mathematical morphology, duality, idempotence. alternative ordering, including geodesic reconstructions, can be found in [21]. Soille revisited the notion of self-duality using the Ç more general concept of flat zones [30]. Recently, -based approaches to producing self-dual morphological operators were investigated in [12] and [36]. 1INTRODUCTION 1.1 Motivation MOST morphological operators occur in pairs of dual operators, Self-duality is a desirable property for at least two reasons: The first such as / and opening/closing. In the binary case, reason is that self-dual operators do not require a priori delineation duality refers to processing of the background instead of the of the image in terms of foreground and background. Such foreground of the image. For example, erosion of the background of operators are well suited to applications where we desire to an image is equivalent to dilation of its foreground. An operator separate two components, one of which is sometimes lighter and which acts on the foreground and background in the same fashion sometimes darker than the other component. An example is the is called a self-dual operator. Examples of self-dual morphological case in which we want to eliminate background noise [28]. Another operators are median filters, self-dual connected operators such as scenario which requires self-dual operators arises when filtering levelings [17], [18], and merging-based autodual connected images where the designation of foreground and background is operators [25]. However, self-dual operators are not necessarily unclear, e.g., textures, natural scenes, earth observation imagery morphological filters, i.e., idempotent. In fact, in the case of the [31], and radar images [16]. The second reason is that Yli-Harja et al. [37] have shown that self-dual binary filters are statistically median filter, not only is it not idempotent, but it may not converge unbiased in the sense of median, i.e., the median of the input is and thus repeated application of median filtering could enter into a also the median of the output in the case of i.i.d. random variables. cycle [5]. The importance of idempotence in image analysis has Similar results have also been presented experimentally by been emphasized by Serra [28]. Classical examples of idempotent Stevenson and Arce [33], who demonstrated that median filters operators include ideal (low-pass, high-pass, and band-pass) filters which are self-dual operators lead to unbiased estimates, whereas filtering using morphological operators that are not self-dual (e.g., opening and closing) results in biased estimates. . N. Bouaynaya is with the Department of Systems Engineering, George W. In many applications, it is also desirable to impose a stability Donaghey College of Engineering and Information Technology, University condition: The operator should be idempotent ( 2 ¼ ) or at least of Arkansas at Little Rock, 2801 S. University Ave., Little Rock, AR 72204. mþ1 m E-mail: [email protected]. rapidly converging ( ¼ , for some positive integer m) [24]. . M. Charif-Chefchaouni is with the Institut National des Postes et The idempotence or rapid convergence properties may be of great Te´le´communications, 2, av Allal El Fasse—Madinat AL Irfane, Rabat, importance in situations where repeated filtering is undesirable Morocco. E-mail: [email protected]. due, for instance, to processing time [24]. In practice, idempotence . D. Schonfeld is with the Department of Electrical and Computer implies that the transformation is complete and no further Engineering, University of Illinois at Chicago, Room 1020 SEO processing is required to achieve the aim of the filter [23]. (M/C 154), 851 South Morgan Street, Chicago, IL 60607-7053. Nonidempotent operators, on the other hand, must be repeated E-mail: [email protected]. over several iterations and it is generally very difficult to predict Manuscript received 21 July 2009; revised 21 July 2010; accepted 23 Oct. how many iterations must be applied before the transformed 2011; published online 13 Dec. 2011. signal (or image) reaches a desired state. Even worse, repeated Recommended for acceptance by P. Maragos. iteration of nonidempotent operators often does not reach steady For information on obtaining reprints of this article, please send e-mail to: [email protected], and reference IEEECS Log Number state and such a state may not exist [8]. TPAMI-2009-07-0468. In this paper, we formalize the notion of rapid convergence by Digital Object Identifier no. 10.1109/TPAMI.2011.244. introducing the concept of m-idempotence, namely, we refer to an

0162-8828/12/$31.00 ß 2012 IEEE Published by the IEEE Computer Society 806 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012 operator as m-idempotent provided that it converges after exactly m 2.1 Spatially Variant Mathematical Morphology iterations, where m is a positive finite integer. We develop methods In the SVMM framework, the structuring element is not fixed but for construction of spatially variant morphological operators that varies (in size, shape, and other characteristics) in space. The are both self-dual and m-idempotent. SV morphology was first spatially variant structuring element is given by a mapping from introduced by Serra in [28, Chapters 2 and 4], recently extended by E into PðEÞ such that to every z 2 E we can associate a “local” Bouaynaya et al. in [2], [3], [4], and is currently playing a significant structuring element ðzÞ. The transposed spatially variant structur- role in various signal and image processing applications [34], [35]. ing element 0 is given by a mapping from E into PðEÞ such that Our construction of morphological operators relies on a spatially 0 variant version of a generalized morphological center. We demon- ðyÞ¼fz 2 E : y 2 ðzÞg ðy 2 EÞ: ð1Þ strate that self-dual operators form a subclass of the generalized The SV erosion and dilation are defined as follows [1], [3], morphological centers that can be used to establish an isomorphism [22], [28]: between increasing self-dual operators and morphological centers. Spatially variant erosion: The spatially-variant erosion E 2Ois Self-duality and m-idempotence will therefore be characterized by defined as constraints on the spatially variant structuring elements of the \ 0c kernel of the generalized morphological center. In particular, we EðXÞ¼fz 2 E : ðzÞXg¼ ðxÞðX 2PðEÞÞ: ð2Þ will show that Heijman’s self-dual morphology based on switch x2Xc operators [8] is a special case of the proposed self-duality theory. Spatially variant dilation: The spatially variant dilation D 2O Moreover, we will establish methods that rely on the spatially- is defined as variant kernel representation of the generalized morphological [ center for construction of m-idempotent and self-dual morphologi- 0 DðXÞ¼fz 2 E : ðzÞ\X 6¼;g¼ ðxÞðX 2PðEÞÞ: ð3Þ cal operators. x2X This paper is organized as follows: In Section 2, we briefly recall the basics of spatially variant morphology [2], [3], [4]. In Section 3, A kernel representation theorem [6] that extends Matheron’s a method for the construction of self-dual morphological operators representation theorem to increasing (but not necessarily transla- based on the notion of the morphological center and its kernel tion invariant) operators can also be proven [3]. representation is presented. In Section 4, we provide necessary and Theorem 1 [3]. A nondegenerate operator 2O is increasing if and sufficient conditions for the construction of overfilters and under- only if can be exactly represented as of spatially variant filters given by their kernel representation. In Section 5, sufficient erosions by mappings in its kernel or equivalently as intersection of conditions for the construction of m-idempotent self-dual mor- spatially variant dilations by the transposed mappings in the kernel of phological centers given by their kernel representation are its dual , i.e., provided. In Section 6, the results of the previous section are [ \ extended to obtain sufficient conditions for the construction of ðXÞ¼ EðXÞ¼ D0 ðXÞ; ð4Þ m-idempotent (not necessarily self-dual) morphological centers 2 Ker ðÞ 2 Ker ðÞ given by their kernel representation. Section 8 presents an application to speckle noise removal in radar images. for every X 2PðEÞ, where KerðÞ¼f : z 2 ððzÞÞ; for every z 2 Eg: ð5Þ 2PRELIMINARIES The SV kernel representation, given in (5), is redundant in the In this paper, we consider the continuous or discrete euclidean sense that a smaller subset of the kernel is sufficient for the E ¼ IR n ZZn n>0 space or for some . A binary image can be representation of increasing operators [3]. In this paper, we say E PðEÞ represented as a subset of . The set denotes the set of all that an increasing operator is generated by a family of spatially subsets of E. Elements of the set E will be denoted by lower case variant structuring elements figi2I if letters, e.g., a; b; c. Elements of the set PðEÞ will be denoted by [ upper case letters, e.g., A; B; C. An order on PðEÞ is imposed by ¼ Ei : ð6Þ the inclusion . We use [ and \ to denote the union and i2I intersection in PðEÞ, respectively. “); ,; 8; 9” denote, respec- tively, “implies,” “if and only if (iff),” “for all,” and “there exist(s).” Observe that the family figi2I is a subset of the kernel of such Xc denotes the complement of X, and X ¼X ¼fx : x 2 Xg that for every 2 KerðÞ, there exists i 2 I such that i . denotes the reflected set of X. The translate of the set X by the Furthermore, we assume that j i ) j ¼ i. The family f igi2I element a 2 E is defined by X þ a ¼fx þ a : x 2 Xg. We use O¼ is also called a basis of the kernel of [13], [3]. The requirement that PðEÞPðEÞ to denote the set of all operators mapping PðEÞ into itself. the kernel of has a basis, i.e., that every member of the kernel is Elements of the set O will be denoted by lower case Greek letters, bounded by a maximal element, requires some continuity e.g., ; ; . Id will denote the identity operator of PðEÞ into itself. condition on [15], [3]. It is verified if is locally finitary, i.e., An order on O is imposed by the inclusion , i.e., if and p 2 ðXÞ)p 2 ðY Þ, for a finite subset Y of X. only if ðXÞðXÞ for every X 2PðEÞ. The symbol “n” will denote, at the same time, the difference between sets and the 3SELF-DUALITY induced difference between operators in O. We shall restrict our attention to nondegenerate operators, i.e., ðEÞ¼E and ð;Þ ¼ ; We assume throughout this section that all operators in O are for every 2O. increasing. In particular, extension of increasing set operators into The mapping in O is the dual of the mapping in O iff flat operators follows from [11], [14], [20], [27], [28], [32]. Following ðXÞ¼ð ðXcÞÞc, for all X 2PðEÞ.Aself-dual operator is an Serra’s work on self-dual filtering [28], we shall enlarge the operator such that ¼ . concept of the self-dual mapping to that of the central mapping, or Throughout the paper, we provide references to known results center, which does not require the existence of complementation. and limit the presentation of proofs to new contributions. All The morphological center, , of two operators 1 2 is defined proofs are presented in the supplemental material, which can be by Serra [28]: found in the Computer Society Digital Library at http://doi. ¼ðId \ 2Þ[1 ¼ðId [ 1Þ\2: ð7Þ ieeecomputersociety.org/10.1109/TPAMI.2011.244. IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012 807

More generally, let figi2I be an arbitrary family of operators in where the origin is taken at the center of the matrices. From O. The morphological center with respect to this family is Corollary 2, it can be seen that the morphological center defined as [28] given by ! ! [ \ ðXÞ¼X \ ðX AÞ\ðX BÞ [ ðX AÞ[ðX BÞ ; ð17Þ ¼ Id \ i [ i : ð8Þ i2I i2I for every X 2PðEÞ, is a self-dual operator. We will show that every increasing self-dual morphological We end this section with a theorem showing that the class of all operator can be viewed as a morphological center. The following morphological centers of 1 and 1 satisfying 1 1 contains all theorem provides a necessary and sufficient condition for the self- self-dual operators. The following lemma will be useful for the duality of the morphological center. proof of the theorem. Theorem 2. Consider the morphological center of two operators Lemma 3. Let 2O. For any 1 2, we have ¼ðId \ 2Þ[1 if 1 2. Then, is self-dual if and only if c c and only if \ Id 1 and 2 [ Id . Id \ 1 Id [ 2; ð9Þ Theorem 4 (Self-duality of SV operators). The operator 2O is self-dual if and only if there exists 1 2O such that 1 1 and and ð10Þ ¼ðId \ 1Þ[1 ¼ðId [ 1Þ\1.

Theorem 4 states that every self-dual operator can be viewed 2 1: ð11Þ c as the morphological center of the operator 1 ¼ \ Id and its Idc From Theorem 2, we derive two corollaries which will be used dual 1 ¼ [ . Note that for a given , there can be several 1, for the construction of self-dual increasing operators. with ¼ðId [ 1Þ\1. Clearly, among such 1, is the greatest one and \ Idc is the least one. One should also notice that as long Corollary 1. The operator is self-dual if and only if c as is not identically equal to Id or Id , the operator 1 is nontrivial. In particular, for ¼ Id (respectively, Idc), one gets Id \ 2 and 1 Id [ ð12Þ 1 2 c 1 ¼; (respectively, Id ). This provides a procedure for the construction of arbitrary self-dual operators. By considering all and ð13Þ the operators 1 such that 1 1, we are sure to cover all the self- dual operators by considering all the centers of the form : ð14Þ 2 1 ðId \ 1Þ[1. Now, the algorithm for the construction of self-dual operators is

straightforward. Lemma 1. If 2 ¼ 1, then the morphological center is self-dual. Algorithm for the construction of self-dual operators: The following theorem provides a method for the construction 1) Consider a family of mappings fig such that of increasing self-dual operators based on the result of Lemma 1. i2I iðzÞ\jðzÞ 6¼;; 8i; j 2 I;8z 2 E. We assume that 1 is generated by the family figi2I , i.e., [ 2) Construct the operator 1 ¼[i2I Ei 1ðXÞ¼ Ei ðXÞ: ð15Þ 3) The operator ¼ðId \ 1Þ[1 is self-dual. i2I

Before stating the main theorem, we prove a lemma giving a Moreover, every increasing self-dual operator can be con- necessary and sufficient condition on the kernel of 1 such that structed using the above algorithm. 1 1. We now show that Heijmans’ method of the construction of Lemma 2. 1 1 if and only if iðzÞ\jðzÞ 6¼;, for every z 2 E and self-dual operators in [8] is a special case of the proposed self- c for every i; j 2 I. duality theory, corresponding to the choice of 1 ¼ \ Id . Theorem 3 (Self-duality ofS the SV morphological center). If the Example 2 (The switching operator [8]). A switch operator

operator 1, given by 1 ¼ i2I Ei , is such that iðzÞ\jðzÞ 6¼;for associated with a self-dual operator is defined by all i; j 2 I and all z 2 E, then the morphological center ¼ ðXÞ¼X \ ðXcÞ; ðX 2PðEÞÞ: ð18Þ ðId \ 1Þ[1 is self-dual. The term “switch operator” has been used by Heijmans to In the translation-invariant case, Theorem 3 reduces to the denote two properties of , that are satisfied if and only if the following corollary. self-dual operator is increasing. The self-dual operator can Corollary 2 (Self-duality of theS TI morphological center). If the be reconstructed from by means of the following formula [8]: operator 1, given by 1ðXÞ¼ i2I ðX AiÞ, for every X 2PðEÞ, c c is such that Ai \ Aj 6¼; for every i; j 2 I, then the morphological ðXÞ¼ðX \ ðXÞ Þ[ðX Þ; ðX 2PðEÞÞ: ð19Þ center ¼ðId \ 1Þ[1 is self-dual. c c By letting 1ðXÞ¼ð \ Id ÞðXÞ¼ðX Þ, it is easy to see that we have The following example illustrates the self-duality of the morphological center in the translation-invariant case. c ðXÞ¼ðX \ ðXÞ Þ[ðXcÞ Example 1. Let A; B be two structuring elements given, respec- ð20Þ ¼ðX \ ðXÞÞ [ 1ðXÞ: tively, by 1 0 1 0 1 Therefore, Heijman’s construction of self-dual operators is a 011 010 special case of the proposed self-duality theory, corresponding A ¼ @ 011A;B¼ @ 101A; ð16Þ to the choice of ¼ \ Idc in Theorem 4. 000 010 1 808 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012

Fig. 1. Kernel structure for (a) an overfilter and (b) an underfilter.

4OVERFILTERS AND UNDERFILTERS Example 1, B; fBzgz2B satisfy the condition. Therefore, from Corollary 3, the operator given by Definition 1 [28]. An increasing operator is called an overfilter 2 2 (respectively, underfilter)if (respextively, ). An ðXÞ¼ðX AÞ[ðX BÞ[BðXÞ[ðX A BÞ; increasing operator is an inf-overfilter (respestively, sup-under- filter)ifðId \ Þ¼ (respectively, ðId [ Þ¼). for every X 2PðEÞ, is an overfilter. The following proposition gives the structure of the kernel of an Observe that an operator that is simultaneously an overfilter inf-overfilter. and an underfilter is an idempotent operator. Proposition 1 (SV inf-overfilters). The operator is an inf-overfilter 4.1 Overfilters if and only if for every z 2 E, for every i 2 I there exists j 2 I such z z z In the following, we derive a theorem which provides a necessary that jð Þ ið Þ\ ð ið ÞÞ. Moreover, if we assume that there is no inclusion between the Sand sufficient condition on the elements of the kernel of ¼ elements of the kernel generating , i.e., j i ) j ¼ i, then E in order for to be an overfilter. i2I i is an inf-overfilter if and only if for every i 2 I for every z 2 E we 2 Lemma 4. Consider 2O. We have if and only if for every have iðzÞðiðzÞÞ. z 2 E and for every i 2 I there exists j 2 I such that jðzÞ In the translation invariant case, Proposition 1 reduces to the ðiðzÞÞ. following corollary: Theorem 5 (SV overfilters). The operator 2Ois an overfilter if and Corollary 4. The operator is an inf-overfilter if and only if for every only if for every z 2 E and for every i 2 I there exists j 2 I such that i 2 I we have Ai ðAiÞ. for every y 2 jðzÞ there exists kðyÞ2I such that kðyÞðyÞiðzÞ, where k is a mapping from E to I. From Proposition 1 and Corollary 4, we verify the known fact that an inf-overfilter is an overfilter. Fig. 1a provides a simple summary of Theorem 5. For every SVSE i of z, we can always find a SVSE j of z such that for every 4.2 Underfilters element y in the jth SVSE, it is possible to come back to the ith SVSE We now provide a necessary and sufficient condition on the of z by using some other SVSE k of y. This condition generalizes the elements of the kernel of in order for to be an underfilter. concept of triple adjacency introduced by Heijmans [7]. Theorem 6. The operator is an underfilter if and only if for every The following corollary is a direct consequence of Theorem 5 z 2 E for every i 2 I and for every mapping k : iðzÞ 7! I there exists for the translation-invariant case. l 2 I such that Corollary 3 (TI overfilters). The translation-invariant operator is an [ overfilter if and only if for every i 2 I there exists j 2 I such that for lðzÞ kðyÞðyÞ: ð21Þ y2iðzÞ every y 2 Aj there exists kðyÞ2I such that ðAkðyÞÞy Ai.

In the following, we provide some examples showing how one Fig. 1b shows the mechanism involved in Theorem 6. To every can build overfilters in the increasing and translation-invariant element y of every SVSE i of z we can associate any SVSE k of y such case by using Corollary 3. that the union of all the associated SVSEs covers some SVSE l of z. The following corollary provides a necessary and sufficient Example 3 (Translation-invariant morphological opening). Let condition on the elements of the kernel of in order for to be the translation-invariant opening by a structuring element B. be an underfilter in the increasing and translation-invariant It is known that the basis of the kernel of is given by fB g z z2B case. [28]. For every Ai ¼ Bz, it is possible to choose Aj ¼ Bz satisfying Corollary 3. This proves the known fact that the Corollary 5. The operator 2Ois an underfilter if and only if for every translation-invariant opening is idempotent and in particular i 2 I and for every mapping k : Ai 7! I there exists l 2 I such that an overfilter. [ Al ðAkðyÞÞy: ð22Þ Example 4. Let A; fAzgz2B;B;fBzgz2B be the elements of the y2Ai kernel of some operator . It is straightforward to see that A satisfies the condition of Corollary 3. The structuring In general, the construction of underfilters based on (21) element Az also satisfies this condition because, for every (respectively, (22)) is not easy. A simple case is when is t 2 Bz, we have Azt ¼ AðzþtÞ ¼ Ab with b 2 B. Also, from antiextensive. In this case, we have for every i 2 I and for every IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012 809 z 2 E, z 2 iðzÞ (respectively, 0 2 Ai, for every i 2 I) and therefore Theorem 6 (respectively, Corollary 5) is satisfied. The following proposition gives the structure of the kernel of a sup-underfilter in the translation-invariant case. Proposition 2. The operator 2Ois a sup-underfilter if and only if for every i 2 I for every Bi Ai and for everyS mapping k: Ai n Bi 7! I j I A B A there exists 2 such that j i [ y2AinBi ð kðyÞÞy.

From Proposition 2 and Corollary 5, we verify the known fact that a sup-underfilter is an underfilter.

5SELF-DUALITY AND IDEMPOTENCE

5.1 Idempotence Fig. 2. Sufficient conditions for the idempotence of self-dual morphological In this section, we provide sufficient conditions on the elements of centers. the kernel of for the idempotence of the self-dual morphological center of and . This result is subsequently extended to 1. For every i; j 2 I and for every xi 2 Ai n Aj and provide elements of the kernel of in order to have mþ1 ¼ m, for yj 2 Aj n Ai, xi yj 2 Ai \ Aj;T and 2. i 2 I x 2 A any positive integer m. For every there exists k2I k such that for every j 2 I we have 0 2 Ai ðAjÞ . WeS assume throughout this section that is given by x X X X E The next example presents a special case of Corollary 6 with ð Þ¼Si2I Ei ð Þ, for every 2Pð Þ,if is increasing and by one structuring element, that is, ðXÞ¼X A, X 2PðEÞ, is the ðXÞ¼ i2I ðX AiÞ, for every X 2PðEÞ,if is increasing and translation invariant. erosion by the symmetric structuring element A. The mappings figi2I (respectively, fAigi2I ) are assumed to be Example 5 (The self-dual center of the TI erosion [10]). Let A be 0 symmetric, i.e., i ¼ i (respectively, Ai ¼ Ai) for all i 2 I. The a symmetric structuring element. Then, the morphological symmetry condition of the SV structuring element can be center given by expressed as follows: For every y; z 2 E and for every i 2 I,we ðXÞ¼ðX \ðX AÞÞ [ ðX AÞ; ð24Þ have y 2 iðzÞ¼)z 2 iðyÞ. We also assume that for every i; j 2 I and for every z 2 E, iðzÞ\jðzÞ 6¼; (respectively, Ai \ Aj 6¼;). for every X 2PðEÞ, is idempotent if 0 2 A A A. From Theorem 3 (respectively, Corollary 2), it can be concluded that For instance, let A be given by the morphological center of and is self-dual. In order to 0 1 111 determine conditions on the mappings figi2I (respectively, A ¼ @ 101A: ð25Þ fAig ) for the morphological center to be idempotent, we first i2I 111 start by studying the kernel of . Its structure is given by the following proposition. It is clear that the morphological center is self-dual and Proposition 3. The kernel of is generated by the following mapping idempotent. : E 7!PðEÞ (respectively, structuring elements B) given by The next example illustrates Corollary 6 in the case of two [ structuring elements. ðzÞ¼fzg[ fy g or ðzÞ¼ ðzÞ; for i 2 I ð23Þ i i Example 6. The morphological center given by yi2iðzÞ i2I S ðXÞ¼ðX \ððX AÞ\ðX BÞÞÞ for every z 2 E (respectively, B ¼f0g[ i2I fai;ai 2 Aig or B ¼ ð26Þ [ððX AÞ[ðX BÞÞ; Ai for i 2 I). for every X 2PðEÞ, with A and B symmetric and A \ B 6¼;,is The following theorem provides sufficient conditions on the idempotent if elements of the kernel of in order for the self-dual morphological center to be idempotent. 1. For every x 2 A n B and y 2 B n A, x y 2 A \ B; and Theorem 7 (Idempotence of self-dual SV centers). The self-dual 2. There exists x; y 2 A \ B such that 0 2 Ax A, 0 2 B A 0 2 A B 0 2 B B morphological center of and is idempotent if for every z 2 E, x , y , and y . we have For instance, let A and B be given by 0 1 0 1 01110 01010 1. For every i; j 2 I and for every xi 2 iðzÞnjðzÞ and A ¼ @ 10001A;B¼ @ 11011A: ð27Þ yj 2 jðzÞniðzÞ, xi 2 iðyjÞ and yTj 2 jðxiÞ; and 01110 01010 2. For every i 2 I there exists x 2 k2I kðzÞ such that for j I y x z y every 2 there exists j 2 jð Þ such that 2 ið jÞ. The structuring elements A and B satisfy the above conditions For clarity, we will translate the conditions provided in the and the morphological center is self-dual and idempotent. previous Theorem into the concept of graph morphology. Condi- tions 1 and 2 are represented by Fig. 2. 5.2 M-Idempotence The next corollary provides sufficient conditions for the self- The following theorem provides sufficient conditions under which dual morphological center to be idempotent in the increasing and the self-dual morphological center is m-idempotent, i.e., the translation-invariant case. operator is such that mþ1 ¼ m, for some integer m 1. Corollary 6 (Idempotence of self-dual TI centers). The self-dual Theorem 8. Consider an integer m 1. The self-dual morphological morphological center of and is idempotent if we have center of and is m-idempotent if for every z 2 E we have 810 IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012

for every X 2PðEÞ, for the increasing case, and by ! [ \ ðXÞ¼ X [ ðX AiÞ \ ðX BjÞ; ð31Þ i2I j2J

for every X 2PðEÞ, for the increasing and translation-invariant case. In order to ensure that is a morphological center, we assume that for every i 2 I, for every j 2 J, and for every z 2 E, we have iðzÞ\jðzÞ 6¼; (respectively, for every i 2 I and for every j 2 J, we have Ai \ Bj 6¼;Þ. Finally, we assume that the relations (respectively, structuring elements) corresponding to i (respectively, AiÞ and j (respectively, Bj) are symmetric, for every i 2 I and j 2 J. In this case, the dual of is given by Fig. 3. Self-dual center: 5-idempotence. ! \ [ 1. For every i; j 2 I and for every xi 2 iðzÞnjðzÞ and ðXÞ¼ X \ Di ðXÞ [ Ej ðXÞ; ð32Þ i I j J yj 2 jðzÞniðzÞ, xi 2 iðyjÞ and yj 2 jðxiÞ; and 2 2 2. TThere existsTðx1;x2; ...;x2mÞ such that x1 2 X E j2ITjðzÞ;xiþ1 2 j2I jðxiÞ,fori ¼ 2; ...; 2m 1 and for every 2Pð Þ, for the increasing case, and by z 2 ðx Þ. ! j2I j 2m \ [ Condition 2 can be simply represented by Fig. 3. This ðXÞ¼ X \ ðX AiÞ [ ðX BjÞ; ð33Þ condition generalizes the notion of triple adjacency introduced i2I j2J by Heijmans [7]. for every X 2PðEÞ, for the increasing and translation-invariant We shall now state the corresponding corollary for the case. Notice the symmetry in the structure of and its dual. This increasing and translation-invariant case. symmetry implies that any result that is valid for will be valid for Corollary 7. The self-dual morphological center of the translation- its dual by simply exchanging the roles of i (respectively, AiÞ and m m 1 invariant operators and is -idempotent for some integer j (respectively, Bj). if we have In this section, we shall provide sufficient conditions on i (respectively, A )and (respectively, B )inorderforthe 1. For every ði; jÞ2I I and for every x 2 A n A and i j j i i j morphological center to be idempotent and, more generally, yj 2 Aj n Ai, xi yj 2 Ai \ Aj; and m-idempotent, for some positive integer m. 2. 0 2j¼1;...;2mþ1ð\i2I AiÞ. We end this section by providing a special case of Corollary 7 6.1 Idempotence corresponding to one structuring element. As in the previous section, we first begin by studying the structure Example 7 (The self-dual center of the TI erosion). Consider a of the kernel of . This structure is given by the following symmetric structuring element A. The morphological center proposition: given by Proposition 4. The kernel of is generatedS by the mappings from E into PðEÞ given by ðzÞ¼fzg[ fyj : yj 2 jðzÞg or ðzÞ¼ ðXÞ¼X \ðX AÞ[ðX AÞ; ð28Þ j2J iðzÞ for i 2 I, for every z 2 E. for every X 2PðEÞ,ism-idempotent for some integer m 1 if 0 2i¼1;...;2mþ1 A. A similar result can be obtained for the dual of by For instance, let A be given by exchanging the roles of i and j. 0 1 The following theorem provides sufficient conditions for the 00001 morphological center to be idempotent. B C B 00100C B C Theorem 9. The operator is idempotent if, for every z 2 E, we have A ¼ B 01010C: ð29Þ @ 00100A 1. For every k; l 2 J and for every xk 2 kðzÞnlðzÞ and 10000 yl 2 lðzÞnkðzÞ, xk 2 kðylÞ and yl 2TlðxkÞ; It is easy to verify that 0 62 A A A and 0 2 A A 2. For every i 2 I, there exists x 2 iðzÞ\ j2J jðzÞ such that A A A. Therefore, A satisfies the above condition and for every j 2 J there exists yj 2 jðxÞ such that z 2 iðyjÞ; the self-dual morphological center is 2-idempotent, i.e., 3. For every k; l 2 I and for every uk 2 kðzÞnlðzÞ and 3 ¼ . vl 2 lðzÞnkðzÞ, uk 2 kðvlÞ and vl 2TlðukÞ; 4. For every j 2 J there exists y 2 jðzÞ\ i2I iðzÞ such that for every i 2 I there exists yi 2 iðyÞ such that z 2 jðyiÞ. We now state the corresponding corollary for the case of an 6GENERALIZED MORPHOLOGICAL CENTER increasing and translation-invariant morphological center. In this section, we extend the results obtained in the previous Corollary 8. The operator is idempotent if, for every z 2 E, we have section to the case of the morphological center given by ! 1. For every k; l 2 J and for every xk 2 Bk n Bl and [ \ yl 2 Bl n Bk, xk yl 2 Bk \ Bl; T ðXÞ¼ X [ Ei ðXÞ \ Dj ðXÞ; ð30Þ 2. For every i 2 I, there exists x 2 Ai \ Bj such that for i2I j2J j2J every j 2 J we have ðBjÞx \ Ai 6¼;; IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012 811

3. For every k; l 2 I and for every uk 2 Ak n Al and directional alternating sequential filters has been proposed in [24]. vl 2 Al n Ak, uk vl 2 Ak \ Al; T Considering the large variation of the speckle, in order to preserve 4. For every j 2 J there exists y 2 Bj \ i2I Ai such that for the local average value of the amplitude, it is necessary to every i 2 I we have ðAiÞy \ Bj 6¼;. alternatively suppress the local maxima and minima with neighborhoods of increasing size. Linear structuring elements A special case of Corollary 8 is obtained when A ¼ A for all i are particularly suitable for this task as two-dimensional structur- i 2 I and B ¼ B for all j 2 I. The resulting morphological center is j ing elements may contain one or several very sharp maxima or then called the annular filter. The following example provides minima so that an opening or a closing with respect to this element sufficient conditions under which the annular filter is idempotent. modifies the local value noticeably [24]. Let us denote by ð; pÞ the Example 8 (Idempotence of the annular filter [10]). The annular linear structuring element of length p and angle, with respect to filter given by the x-axis, . The algebraic opening is then defined as [24]

ðXÞ¼X \ðX BÞ[ðX AÞ; ð34Þ p ¼ Max ðð1;pÞ;ð2;pÞ; ...;ðn ;pÞÞ; ð35Þ

with A and B symmetric, and A \ B 6¼;, is idempotent if where 1;2; ...;n are the different directions chosen. Similarly, ðA \ BÞ\ðA BÞ 6¼;. the algebraic closing is defined as [24] 6.2 M-Idempotence p ¼ Min ðð1;pÞ;ð2;pÞ; ...;ðn;pÞÞ: ð36Þ In the next theorem, we provide sufficient conditions under which the morphological center is m-idempotent for some positive The alternating sequential filter corresponding to mp ¼ pp is integer m. Mn ¼ mpn ...mp2 mp1 ; ð37Þ Theorem 10. The operator is m-idempotent for some positive integer m if, for every z 2 E, we have where p1

Fig. 4. Speckle noise removal: (a) original speckled radar image, (b) directional ASF close-open, (c) directional ASF open-close, (d) morphological center, (e) median filtering: iteration 1, (f) median filtering: iteration 5, (g) 1-idempotent annular filter, (h) 2-idempotent annular filter: iteration 1, (i) 2-idempotent annular filter: iteration 2. where I01 and I02 are the original values of the pixels on either 8CONCLUSION side of the edge, whereas If1 and If2 are the corresponding filtered In this paper, we have presented a comprehensive analysis of values. The numerator is the absolute difference in intensity of the m pixels on the two sides of the edge in the original image and the -idempotent and self-dual morphological operators. Our in- denominator is the same difference in the filtered image. There- vestigation was based on the morphological center in the general fore, the EEI is usually greater than 1, and lower EEI values correspond to a better edge preserving capability. TABLE 1 Table 1 shows the SSI and EEI values of the filters in Fig. 4. SSI and EEI of the Different Filters in Fig. 4 The fifth iteration of the median filter removes most of the speckle noise, followed by the directional close-open ASF and the morphological center. The annular filters result in the poorest denoising. On the other hand, consecutive iterations of the median filter smooth the output image, thus resulting in indistinct edges. Because of their poor denoising capability, the annular filters lead to high edge enhancing index. The morphological center achieves an optimum tradeoff between speckle noise removal and edge preservation. IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, VOL. 34, NO. 4, APRIL 2012 813 framework of spatially variant mathematical morphology. We [22] C. Ronse and J. Serra, “Algebraic Foundations of Morphology,” Math. Morphology: From Theory to Applications, ch. 2, pp. 35-80, Wiley, 2010. have shown that the class of self-dual operators is contained in [23] C. Ronse, “On Idempotence and Related Requirements in Edge Detection,” the class of morphological centers. We have relied on this IEEE Trans. Pattern Analysis and Machine Intelligence, vol. 15, no. 5, pp. 484- 491, May 1993. framework to provide sufficient conditions for the representation [24] F. Safaa and G. Flouzata, “Speckle Removal on Radar Imagery Based on of self-dual increasing operators characterized in terms of their Mathematical Morphology,” Signal Processing, special issue on advances in kernel representation. math. morphology, vol. 16, no. 4, pp. 319-333, Apr. 1989. [25] P. Salembier, L. Garrido, and D. Garcia, “Auto-Dual Connected Operators We have also derived necessary and sufficient conditions for Based on Iterative Merging Algorithms,” Proc. Int’l Symp. Math. Morphology the representation of idempotent operators by characterization of and Its Applications to Image and Signal Processing, pp. 183-190, 1998. the kernel of underfilters and overfilters. Furthermore, we [26] D. Schonfeld and J. Goutsias, “Optimal Morphological Pattern Restoration from Noisy Binary,” IEEE Trans. Pattern Analysis and Machine Intelligence, introduced m-idempotent operators by extending the notion of vol. 13, no. 1, pp. 14-29, Jan. 1991. idempotence (i.e., operators that converge after m iterations) and [27] J. Serra, “Introduction to Mathematical Morphology,” Computer Vision, characterized the kernel of m-idempotent operators. We finally Graphics, and Image Processing, vol. 35, pp. 283-305, 1986. [28] J. Serra, Image Analysis and Mathematical Morphology: Theoretical Advances, used the conditions on the kernel representation derived to vol. 2. Academic Press, 1988. establish methods for the construction of m-idempotent and self- [29] Y. Sheng and Z.-G. Xia, “A Comprehensive Evaluation of Filters for Radar dual morphological operators. Speckle Suppression,” Proc. Int’l Geoscience and Remote Sensing Symp., vol. 3, pp. 1559-1561, 1996. [30] P. Soille, “Beyond Self-Duality in Morphological Image Analysis,” Image and Vision Computing, vol. 23, no. 2, pp. 249-257, Feb. 2005. ACKNOWLEDGMENTS [31] P. Soille and M. Pesaresi, “Advances in Mathematical Morphology Applied to Geoscience and Remote Sensing,” IEEE Trans. Geoscience and Remote The authors would like to express their immense gratitude to Sensing, vol. 40, no. 9, pp. 2042-2055, Sept. 2002. Dr. Henk Heijmans from CWI, Netherlands, for his invaluable role [32] S. Sternberg, “Parallel Architecture for Image Processing,” Proc. IEEE in the development of some of the results that led to the Computer Software and Applications Conf., 1979. [33] R. Stevenson and G. Arce, “Morphological Filters: Statistics and Further publication of this paper. Syntactic Properties,” IEEE Trans. Circuits and Systems, vol. CS-34, no. 11, pp. 1292-1305, Nov. 1987. [34] R. Verdu´ -Monedero and J. Angulo, “Spatially-Variant Directional Mathe- REFERENCES matical Morphology Operators Based on a Diffused Average Squared Gradient Field,” Proc. Int’l Conf. Advanced Concepts for Intelligent Vision [1] I. Bloch, H. Heijmans, and C. Ronse, “Mathematical Morphology,” Systems, pp. 542-553, 2008. Handbook of Spatial Logics, ch. 14, pp. 857-944, Springer, 2007. [35] R. Verdu-Monedero, J. Angulo, and J. Serra, “Spatially-Variant Anisotropic [2] N. Bouaynaya, M. Charif-Chefchaouni, and D. Schonfeld, “Spatially- Morphological Filters Driven by Gradient Fields,” Proc. Int’l Symp. Math. Variant Morphological Restoration and Skeleton Representation,” IEEE Morphology and Its Application to Signal and Image Processing, pp. 115-125, Trans. Image Processing, vol. 15, no. 11, pp. 3579-3591, Nov. 2006. 2009. [3] N. Bouaynaya, M. Charif-Chefchaouni, and D. Schonfeld, “Theoretical [36] A. Vichik, R. Keshet, and D. Malah, “Self-Dual Morphology on Tree Foundations of Spatially-Variant Mathematical Morphology Part I: Binary Semilattices and Applications,” Proc. Int’l Symp. Math. Morphology, vol. 1, Images,” IEEE Trans. Pattern Analysis and Machine Intelligence, vol. 30, no. 5, pp. 49-60, Oct. 2007. pp. 837-850, May 2008. [37] O. Yli-Harja, J. Astola, and Y. Neuvo, “Analysis of the Properties of Median [4] N. Bouaynaya and D. Schonfeld, “Theoretical Foundations of Spatially- and Weighted Median Filters Using Threshold Logic and Stack Filter Variant Mathematical Morphology Part II: Gray-Level Images,” IEEE Representation,” IEEE Trans. Signal Processing, vol. 39, no. 2, pp. 395-410, Trans. Pattern Analysis and Machine Intelligence, vol. 30, no. 5, pp. 823-836, Feb. 1991. May 2008. [5] E. Goles and J. Olivos, “Comportement Pe´riodique des Fonctions a` Seuil Binaires et Applications,” Discrete Applied Math., vol. 3, no. 2, pp. 93-105, Apr. 1981. . For more information on this or any other computing topic, please visit our [6] H.J.A.M. Heijmans, Morphological Image Operators. Academic Press, 1994. Digital Library at www.computer.org/publications/dlib. [7] H.J.A.M. Heijmans, “On the Construction of Morphological Operators Which Are Self-Dual and Activity Extensive,” Signal Processing, vol. 38, no. 1, pp. 13-19, July 1994. [8] H.J.A.M. Heijmans, “Self-Dual Morphological Operators and Filters,” J. Math. Imaging and Vision, vol. 6, no. 1, pp. 15-36, 1996. [9] H.J.A.M. Heijmans and R. Keshet, “Inf- Approach to Self-Dual Morphology,” J. Math. Imaging and Vision, vol. 17, no. 1, pp. 55-80, July 2002. [10] H.J.A.M. Heijmans and C. Ronse, “Annular Filters for Binary Images,” IEEE Trans. Image Processing, vol. 8, no. 10, pp. 1330-1340, Oct. 1999. [11] H. Heijmans, “Theoretical Aspects of Gray-Level Morphology,” IEEE Trans. Pattern Analysis and Machine Intelligence, vol. 13, no. 6, pp. 568- 582, June 1991. [12] R. Keshet, “Shape-Tree Semilattice,” J. Math. Imaging and Vision, vol. 22, no. 2, pp. 309-331, May 2005. [13] P.A. Maragos, “A Representation Theory for Morphological Image and Signal Processing,” IEEE Trans. Pattern Analysis and Machine Intelligence, vol. 11, no. 6, pp. 586-599, June 1989. [14] P.A. Maragos and R.W. Schafer, “Morphological Filters—Part I: Their Set- Theoric Analysis and Relations to Linear Shift-Invariant Filters,” IEEE Trans. Acoustics, Speech, and Signal Processing, vol. 35, no. 8, pp. 1153-1169, Aug. 1987. [15] G. Matheron, Random Sets and Integral Geometry. Wiley, 1975. [16] A.J.H. Mehnert and P.T. Jackway, “Folding Induced Self-Dual Filters,” Proc. Int’l Symp. Math. Morphology and Its Applications to Image and Signal Processing, vol. 18, pp. 99-108, June 2000. [17] F. Meyer, “From Connected Operators to Levelings,” Proc. Int’l Symp. Math. Morphology and Its Applications to Image and Signal Processing, pp. 191-198, 1998. [18] F. Meyer, “The Levelings,” Proc. Int’l Symp. Math. Morphology and Its Applications to Image and Signal Processing, pp. 199-206, 1998. [19] F. Meyer and J. Serra, “Contrasts and Activity Lattice,” Signal Processing, vol. 16, no. 4, pp. 303-317, Apr. 1989. [20] C. Ronse, “Why Mathematical Morphology Needs Complete Lattices,” Signal Processing, vol. 21, no. 2, pp. 129-154, Oct. 1990. [21] C. Ronse, “Reconstructing Masks from Markers in Non-Distributive Lattices,” Applicable Algebra in Eng., Comm. and Computing, vol. 19, no. 1, pp. 51-85, Feb. 2008.